Get-WssUser

Get-WssUser

Retrieves a user account by name or security identifier.

構文

Parameter Set: ByNameParamSet
Get-WssUser [-Name] <String> [ <CommonParameters>]

Parameter Set: BySidParamSet
Get-WssUser [-Sid] <String> [ <CommonParameters>]

詳細説明

The Get-WssUser cmdlet retrieves a 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.

パラメーター

-Name<String>

Specifies the logon name of a user.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Sid<String>

Specifies the security identifier of a user.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.WindowsServerSolutions.Users.User

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

Example 1: Retrieve a user account by name

This command retrieves a user account by name.

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

関連トピック

Add-WssUser

Import-WssUser

Remove-WssUser

Sync-WssUser