PowerTip: Get a list of local Users in Windows 10 / Windows Server 2016


Summary: Use the cmdlets provided in PowerShell 5.1 to manage local user accounts on a system.

Hey, Scripting Guy! Question I remember having to use the Active Directory Service Interfaces (ADSI) accelerator to access a list of local users in PowerShell. Is there a cmdlet that could do this now?

Hey, Scripting Guy! Answer Yes.  In the most recent version of Windows 10 / Windows Server 2016 with PowerShell 5.1, you can run just one cmdlet to pull up a list of local users.

Get-LocalUser

The Doctor

Comments (0)

Skip to main content