Get-CMUser

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Get-CMUser

Gets a user of the Configuration Manager hierarchy.

Syntax

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

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

Detailed Description

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 Configuration Manager collections, see Introduction to Collections in Configuration Manager.

Parameters

-Id<String>

Specifies the Id of the user to retrieve.

Aliases

ResourceID

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the user to retrieve.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

PS C:\>