Get-​CM​Access​Account

Gets an access account.

Syntax

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

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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApplicationName

Specifies the name of an application object.

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

Specifies the ID of a boot image object.

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

Specifies the name of a boot image object.

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

Specifies the ID of a driver package.

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

Specifies the name of a driver package.

Type:String
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OperatingSystemImageName

Specifies the name of an operating system image.

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

Specifies the ID of an operating system installer.

Type:String
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
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
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
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

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
-UserName

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

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