Windows Commands / IT Support Guides
Review local Windows accounts with Get-LocalUser
Review which local Windows accounts exist and whether each is enabled.
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.