Share via


Remove-SCOMUserRole

Removes user roles in System Center Operations Manager.

Syntax

Default (Default)

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.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserRole

The Remove-SCOMUserRole cmdlet removes user roles in System Center Operations Manager.

Parameter properties

Type:

UserRole[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.