Export (0) Print
Expand All
Expand Minimize

Remove-CMDeviceCollectionFromAdministrativeUser

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Remove-CMDeviceCollectionFromAdministrativeUser

Removes the association between an administrative user and a device collection.

Syntax

Parameter Set: RemoveDeviceCollectionFromAdminByName_Name
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserName <String> -DeviceCollectionName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminById_Id
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserId <Int32> -DeviceCollectionId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminById_Name
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserName <String> -DeviceCollectionId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminById_Object
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUser <IResultObject> -DeviceCollectionId <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminByName_Id
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserId <Int32> -DeviceCollectionName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminByName_Object
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUser <IResultObject> -DeviceCollectionName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminByObject_Id
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserId <Int32> -DeviceCollection <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminByObject_Name
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserName <String> -DeviceCollection <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveDeviceCollectionFromAdminByObject_Object
Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUser <IResultObject> -DeviceCollection <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMDeviceCollectionFromAdministrativeUser cmdlet removes the association between an administrative user and a device collection. After you remove the association, you cannot automatically install an application on all device collections that are associated with that administrative user.

Parameters

-AdministrativeUser<IResultObject>

Specifies a CMAdministrativeUser object. To obtain a CMAdministrativeUser 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 an Id of an administrative user.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-AdministrativeUserName<String>

Specifies a name of an administrative user.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollection<IResultObject>

Specifies a CMDeviceCollection object. To obtain a CMDeviceCollection 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 ID of a device collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeviceCollectionName<String>

Specifies the name of a device collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Force

Removes the association of an administrative user from a device collection without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.


Aliases

none

Required?

false

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: Remove a device collection from an administrative user

This command removes the association between the administrative user Team04\TeamAdmin and the device collection named PhoneCollection05.


PS C:\> Remove-CMDeviceCollectionFromAdministrativeUser -AdministrativeUserName "Team04\TeamAdmin" -DeviceCollectionName "PhoneCollection05"

Related topics

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