Remove-CMAdministrativeUser

Remove-CMAdministrativeUser

Removes Configuration Manager administrative users.

構文

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

詳細説明

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.

パラメーター

-Force

Performs the action without a confirmation message.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Id<String[]>

Specifies an array of IDs for administrative users.

エイリアス

AdminId

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-InputObject<IResultObject>

Specifies a CMAdministrativeUser object. To obtain a CMAdministrativeUser object, use the Get-CMAdministrativeUser cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String[]>

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

エイリアス

DisplayName

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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

エイリアス

RoleNames

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Remove an administrative user by using a wildcard

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

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

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 Evan 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 Evan*
PS C:\> Remove-CMAdministrativeUser -InputObject $AdminUser

関連トピック

Get-CMAdministrativeUser

New-CMAdministrativeUser