Export (0) Print
Expand All
Expand Minimize

Remove-CMAdministrativeUser

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Remove-CMAdministrativeUser

Removes Configuration Manager administrative users.

Syntax

Parameter Set: SearchByIdMandatory
Remove-CMAdministrativeUser -Id <String[]> [-Force] [-RoleName <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Remove-CMAdministrativeUser -Name <String[]> [-Force] [-RoleName <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Remove-CMAdministrativeUser -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMAdministrativeUser cmdlet removes one or more Microsoft System Center 2012 Configuration Manager administrative users. When you remove an administrative user, System Center 2012 Configuration Manager revokes the access of the administrative user to manage Configuration Manager.

Parameters

-Force

Removes a Configuration Manager administrative user without prompting for confirmation.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Id<String[]>

Specifies an array of IDs for administrative users.


Aliases

AdminId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

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

-Name<String[]>

Specifies an array of administrative user names in the form of <domain>\<user>.


Aliases

DisplayName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

-RoleName<String[]>

Specifies an array of names of security roles. Valid values are:
-- Application Administrator
-- Application Author
-- Application Deployment Manager
-- Asset Manager
-- Compliance Settings Manager
-- Discovery Operator
-- Endpoint Protection Manager
-- Full Administrator
-- Infrastructure Administrator
-- Operating System Deployment Manager
-- Operations Administrator
-- Read-only Analyst
-- Remote Tools Operator
-- Security Administrator
-- Software Update Manager
-- custom-defined security roles


Aliases

RoleNames

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 an administrative user by using a wildcard

This command removes administrative users who have the first name John.


PS C:\> Remove-CMAdministrativeUser -Name John*

Example 2: Remove an administrative user by using an ID

This command removes the administrative user who has the identity 16777225.


PS C:\> Remove-CMAdministrativeUser -ID "16777225"

Example 3: Remove an administrative user by using an object variable

In this example, the first command gets administrative users who have the name John and stores them in the $AdminUser variable.

The second command removes the administrative users stored in the variable $AdminUser.


PS C:\> $AdminUser = Get-CMAdministrativeUser -Name John*
PS C:\> Remove-CMAdministrativeUser -InputObject $AdminUser

Related topics

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