Remove-SCACUserRole

Remove-SCACUserRole

Removes the specified user role.

構文

Parameter Set: Default
Remove-SCACUserRole [-UserRole] <ACUserRole> [-PassThru] [ <CommonParameters>]

詳細説明

The Remove-SCACUserRole cmdlet removes the specified user role.

パラメーター

-PassThru

Returns a user role object. By default, this cmdlet does not generate output.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-UserRole<ACUserRole>

Specifies the user role object to remove. To retrieve a user role, use the Get-SCACUserRole cmdlet.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Remove a user role

The first command gets the user role object named UserRole01 and stores the object in the $UserRole variable.

The second command removes the user role stored in $UserRole.

PS C:\> $UserRole = Get-SCACUserRole -Name "UserRole01" –Managed
PS C:\> Remove-SCACUserRole –UserRole $UserRole

関連トピック

New-SCACUserRole

Get-SCACUserRole

Set-SCACUserRole