Get-WssUser

Retrieves a user account by name or security identifier.

Syntax

Get-WssUser []
Get-WssUser
   [-Name] <String>
   [<CommonParameters>]
Get-WssUser
   [-Sid] <String>
   [<CommonParameters>]

Description

The Get-WssUser cmdlet retrieves a sbs_sbs8_2 server user account. To retrieve a user account by name, specify the login name. To retrieve a user account by security identifier, specify the SID. To retrieve all user accounts, use the cmdlet without arguments.

Examples

Example 1: Retrieve a user account by name

PS C:\> Get-WSSUser -Name "SarahJones"

This command retrieves a user account by name.

Parameters

-Name

Specifies the logon name of a user.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Sid

Specifies the security identifier of a user.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.Users.User

This cmdlet generates the server user object with the specified properties.