Hi,
The Get-LocalUser PowerShell cmdlet lists all the local users on a device. Remember that Active Directory domain controllers don’t have local user accounts.
Get-LocalUser
If you want to see all the parameters available, pipe the results to the Select cmdlet:
Get-LocalUser | Select *
Running the cmdlet without any parameters returns all accounts but you can also add the -Name or -SID parameters to return information about a specific account.
I hope this answers your question.
-------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--