Remove-SCOMUserRole
删除 System Center Operations Manager 中的用户角色。
语法
Remove-SCOMUserRole
[-UserRole] <UserRole[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
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 |