Add-CMDeviceCollectionToAdministrativeUser

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 running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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


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 (http://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: 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

Community Additions

ADD
Show: