New-CMAccessAccount

Adds users or groups to an access account.

Syntax

New-CMAccessAccount
   -Access <AccessRight>
   -AccountType <AccessAccountType>
   -ApplicationId <String>
   [-Confirm]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-UserName <String>]
   [-WhatIf]
   [<CommonParameters>]
New-CMAccessAccount -Access  -AccountType  -ApplicationName  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-UserName ] [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  -BootImageId  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-UserName ] [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  -BootImageName  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-UserName ] [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] -DriverPackageId  [-ForceWildcardHandling] [-UserName ] [-WhatIf]
 []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] -DriverPackageName  [-ForceWildcardHandling] [-UserName ] [-WhatIf]
 []
New-CMAccessAccount [-InputObject]  -Access  -AccountType 
 [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling] [-UserName ] [-WhatIf]
 []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemImageId  [-UserName ]
 [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemImageName  [-UserName ]
 [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemInstallerId  [-UserName ]
 [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -OperatingSystemInstallerName 
 [-UserName ] [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -PackageId  [-UserName ] [-WhatIf]
 []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -PackageName  [-UserName ] [-WhatIf]
 []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -SoftwareUpdateDeploymentPackageId 
 [-UserName ] [-WhatIf] []
New-CMAccessAccount -Access  -AccountType  [-Confirm]
 [-DisableWildcardHandling] [-ForceWildcardHandling] -SoftwareUpdateDeploymentPackageName 
 [-UserName ] [-WhatIf] []

Description

The New-CMAccessAccount cmdlet adds users or groups to 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.

Examples

Example 1: Modify access to an application by using the application ID

PS C:\> $ID = Get-CMAccessAccount -ApplicationID "12994680"
PS C:\> New-CMAccessAccount -ApplicationID $ID -Type WindowsUser Username "CONTOSO\EDaugherty" -Access "FullControl"

The first command gets an application ID, and then stores it in the $ID variable.

The second command gets the application that is identified by $ID and adds a user to the access account. The permissions of the new user are set to FullControl.

Required Parameters

-Access

Specifies the access rights that are associated with an access account. Valid values are: No Access, Read, Change, and Full Control.

Type:AccessRight
Parameter Sets:NoAccess, Read, Change, FullControl
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AccountType

Specifies an account type. Valid values are: Guest, User, WindowsGroup, and WindowsUser.

Type:AccessAccountType
Parameter Sets:User, Guest, Administrator, WindowsUser, WindowsGroup
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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.

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.

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.

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:Application, BootImage, DriverPackage, OperatingSystemImage, OperatingSystemInstaller, Package, SoftwareUpdateDeploymentPackage
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.

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.

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.

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

Specifies the ID of a deployed software update.

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.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-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
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False