Get-CMAccessAccount

Gets an access account.

Syntax

Get-CMAccessAccount
   -ApplicationId <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-UserName <String>]
   [<CommonParameters>]
Get-CMAccessAccount -ApplicationName  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-UserName ] []
Get-CMAccessAccount -BootImageId  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-UserName ] []
Get-CMAccessAccount -BootImageName  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] -DriverPackageId  [-ForceWildcardHandling]
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] -DriverPackageName  [-ForceWildcardHandling]
 [-UserName ] []
Get-CMAccessAccount [-InputObject]  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemImageId 
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemImageName 
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemInstallerId 
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemInstallerName 
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling] -PackageId 
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling] -PackageName 
 [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateDeploymentPackageId  [-UserName ] []
Get-CMAccessAccount [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateDeploymentPackageName  [-UserName ] []

Description

The Get-CMAccessAccount cmdlet gets an access account.

An access account is a list of users or groups that can access an established service or application that is located on a distribution point. For example, members in the Software Update Point Connection access account can access two services to manage software updates: Windows Server Update Services (WSUS) and WSUS Synchronization Manager. You can get an access account to change the network access permissions for clients who use the account.

Examples

Example 1: Get an access account for a package by using the package ID

PS C:\> $ID = Get-CMPackage -PackageName "Configuration Manager Client Package" 
PS C:\> Get-CMAccessAcccount -PackageId $ID
Name:          Administrator
Type:          Administrator
Access:        FullControl
Sitecode:      CM1
PackageID:     CM100002
Name:          CONTOSO\PFuller
Type:          WindowsUser
Access:        Read
Sitecode:      CM1
PackageID:     CM100002

The first command gets the package that is identified by name. The command stores the ID of the specified package in the $ID variable.

The second command gets the access account for the identified package. The command output describes all users and groups that can access this package.

Example 2: Get an access account for a boot image by using the boot image name

PS C:\> Get-CMAccessAccount -BootImageName "System Image (x64)"
Name:          CONTOSO\EDaugherty
Type:          WindowsUser
Access:        Read
Sitecode:      CM1
Boot Image:    System Image (x64)

The command gets the access account for a system boot image that is specified by using its name.

Required Parameters

-ApplicationId

Specifies the ID of an application.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApplicationName

Specifies the name of an application object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BootImageId

Specifies the ID of a boot image object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BootImageName

Specifies the name of a boot image object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DriverPackageId

Specifies the ID of a driver package.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DriverPackageName

Specifies the name of a driver package.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject
Aliases:DriverPackage, Application, OperatingSystemImage, OperatingSystemInstaller, Package, SoftwareUpdateDeploymentPackage, BootImage
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-OperatingSystemImageId

Specifies the ID of an operating system image.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemImageName

Specifies the name of an operating system image.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemInstallerId

Specifies the ID of an operating system installer.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemInstallerName

Specifies the name of an operating system installer object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PackageId

Specifies the ID of a deployed software script or program object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PackageName

Specifies the name of a deployed software script or program object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SoftwareUpdateDeploymentPackageId

Specifies the ID of a software update deployment object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SoftwareUpdateDeploymentPackageName

Specifies the name of a deployed software update object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Specifies a Windows user account name in domain\user format.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False