Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Windows Commands / IT Support Guides

Review local Windows accounts with Get-LocalUser

Review which local Windows accounts exist and whether each is enabled.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Windows 11 · Command Prompt unless PowerShell is specified

Understand the problem

Use PowerShell on the affected Windows machine. On 64-bit Windows, use 64-bit PowerShell because the LocalAccounts module is unavailable in 32-bit PowerShell.

Run the command

The displayed command lists local account names, enabled state, last logon and last password change. Compare the list with the accounts authorized for this computer.

Get-LocalUser | Select-Object Name, Enabled, LastLogon, PasswordLastSet

Read the output

Enabled True means Windows permits use of that account subject to other controls. An empty LastLogon value supplies no date in this output. Check other authorized records before drawing conclusions about use.

Choose the next step

If you see an unexpected account, confirm whether it belongs to a person, a service or an approved support process. Verify ownership before proposing an access change.

Before making changes

Share account records only through approved channels. Some services or recovery procedures may rely on a local account.

Source & further reading

Microsoft Learn — get-localuser

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles