Remove-SCOMUserRole
拿掉 System Center Operations Manager 中的使用者角色。
Syntax
Remove-SCOMUserRole
[-UserRole] <UserRole[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-SCOMUserRole Cmdlet 會移除 System Center Operations Manager 中的使用者角色。
範例
1:移除 System Center Operations Manager 使用者角色
PS C:\>Get-SCOMUserRole -Name 'Script Role' | Remove-SCOMUserRole
取得,然後使用其名稱移除現有的 System Center Operations Manager 使用者角色。
參數
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserRole
Type: | UserRole[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |