Export (0) Print
Expand All
Expand Minimize

Add-CMDeviceCollectionToAdministrativeUser

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Add-CMDeviceCollectionToAdministrativeUser

Associates a Configuration Manager device collection with an administrative user.

Syntax

Parameter Set: AddDeviceCollectionToAdminByName_Name
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUserName <String> -DeviceCollectionName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminById_Id
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUserId <Int32> -DeviceCollectionId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminById_Name
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUserName <String> -DeviceCollectionId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminById_Object
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUser <IResultObject> -DeviceCollectionId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminByName_Id
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUserId <Int32> -DeviceCollectionName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminByName_Object
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUser <IResultObject> -DeviceCollectionName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminByObject_Id
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUserId <Int32> -DeviceCollection <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminByObject_Name
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUserName <String> -DeviceCollection <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddDeviceCollectionToAdminByObject_Object
Add-CMDeviceCollectionToAdministrativeUser -AdministrativeUser <IResultObject> -DeviceCollection <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Add-CMDeviceCollectionToAdministrativeUser cmdlet associates a device collection in Microsoft System Center 2012 Configuration Manager with an administrative user. This association gives the administrative user the ability to manage devices within the collection.

Parameters

-AdministrativeUser<IResultObject>

Specifies the administrative user by using an administrative user object. To obtain an administrative user object, use the Get-CMAdministrativeUser cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-AdministrativeUserId<Int32>

Specifies the administrative user by using an ID.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-AdministrativeUserName<String>

Specifies the administrative user by using a username.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollection<IResultObject>

Specifies the device collection by using a device collection object. To obtain a device collection object, use the Get-CMDeviceCollection cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollectionId<String>

Specifies the device collection by using an ID.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollectionName<String>

Specifies the device collection by using a name.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

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: Associate a device collection with an administrative user by using names

This command associates the device collection named PhoneCollection05 with the administrative user who has username TSQA\PhoneAdmin.


PS C:\> Add-CMDeviceCollectionToAdministrativeUser -DeviceCollectionName "PhoneCollection05" -AdministrativeUserName "TSQA\PhoneAdmin"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft