Get one or more local user accounts. This cmdlet gets default built-in user accounts, local user accounts that you created, and local accounts that you connected to Microsoft accounts.
Syntax Get-LocalUser [[-Name] String[]] [CommonParameters] Get-LocalUser [[-SID] SecurityIdentifier[]] [CommonParameters] Key -name An array of names of users to get. Accepts wildcards. -SID An array of security IDs (SIDs) of users to get.
You can pipe a string or a SID to this cmdlet.
Get the local user account called 'user64':
PS C:\> Get-LocalUser -Name "user64"
“Three groups spend other people’s money: children, thieves, politicians. All three need supervision” ~Dick Armey
New-LocalUser - Add a local user account.
Set-LocalUser - Modify a local user account.
Add-LocalGroupMember - Add members to a local group.
New-LocalGroup - Add a new local security group.
Remove-LocalGroup - Remove a local group.
Rename-LocalGroup - Rename a local group.
Set-Localgroup - Change a local security group.
Get-ADGroup - Get one or more AD security groups.
New-ADUser - Create a new AD user account.