Get-CMUser

Get-CMUser

Gets a user of the Configuration Manager hierarchy.

構文

Parameter Set: ByName
Get-CMUser [-Name <String> ] [ <CommonParameters>]

Parameter Set: ById
Get-CMUser -Id <String> [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMUser -CollectionId <String> [-Name <String> ] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Get-CMUser -CollectionName <String> [-Name <String> ] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Get-CMUser -Collection <IResultObject> [-Name <String> ] [ <CommonParameters>]

詳細説明

The Get-CMUser cmdlet retrieves a user object that can be added to a collection.

To add a user to a collection use the Add-CMUserCollectionDirectMembershipRule cmdlet. For more information about Microsoft System Center 2012 Configuration Manager collections, see Introduction to Collections in Configuration Manager (https://go.microsoft.com/fwlink/p/?LinkID=259433) on TechNet.

パラメーター

-Collection<IResultObject>

Specifies a Configuration Manager user collection object. To obtain a user collection object, use the Get-CMUserCollection cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CollectionId<String>

Specifies the ID of a user collection in Configuration Manager.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CollectionName<String>

Specifies the name of a user collection in Configuration Manager.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Id<String>

Specifies the ID of the user to retrieve.

エイリアス

ResourceID

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Name<String>

Specifies the name of the user to retrieve.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Get a user

This command gets the user of the Configuration Manager hierarchy named DChew.

PS C:\> Get-CMUser -Name "CENTRAL\DChew"

関連トピック

Remove-CMUser

Get-CMUserCollection