Get-CMAccount

Gets a named user account.

Syntax

Get-CMAccount
   [[-UserName] <String>]
   [-SiteCode <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMAccount cmdlet gets a Microsoft System Center Configuration Manager user account. The user name must be in the domain\user format. For more information about System Center Configuration Manager user accounts, see Technical Reference for Accounts Used in Configuration Manager in the TechNet library.

Examples

Example 1: Get a user account by using its name

PS C:\> Get-CMAccount -Name "CONTOSO\ENarvaez"

This command gets a user account.

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserName
Type:String
Aliases:Name
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False