Get-CMAccount
Get-CMAccount
Gets a named user account.
Syntax
Parameter Set: SearchByName
Get-CMAccount [-Name <String> ] [ <CommonParameters>]
Detailed Description
The Get-CMAccount cmdlet gets a Microsoft System Center 2012 Configuration Manager user account. The user name must be in the domain\user format. For more information about System Center 2012 Configuration Manager user accounts, see Technical Reference for Accounts Used in Configuration Manager in the TechNet Library at https://go.microsoft.com/fwlink/?LinkID=248317.
Parameters
-Name<String>
Specifies the name of the user account.
Aliases |
UserName |
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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get a user account by using its name
This command gets a user account.
PS C:\> Get-CMAccount –Name "CONTOSO\RValdes"