Remove-SCOMUserRole
Removes user roles in System Center Operations Manager.
Syntax
Remove-SCOMUserRole
[-UserRole] <UserRole[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-SCOMUserRole cmdlet removes user roles in System Center Operations Manager.
Examples
1: Remove a System Center Operations Manager user role
PS C:\>Get-SCOMUserRole -Name 'Script Role' | Remove-SCOMUserRole
Gets and then removes an existing System Center Operations Manager user role, using its name.
Parameters
-Confirm
Prompts you for confirmation before running the 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
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |