Gets local users.
Get-User [[-Username] <String>] [<CommonParameters>]
Gets all local users or a specific user by its username.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Username | String | The username for the user. | false | false |
System.DirectoryServices.AccountManagement.UserPrincipal.
Get-User
Demonstrates how to get all local users.
Get-User -Username LSkywalker
Demonstrates how to get a specific user.