Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: System Center 2012 - App Controller
Removes the specified user role.
Parameter Set: __AllParameterSets
Remove-SCACUserRole [-UserRole] <ACUserRole> [ <CommonParameters>]
The Remove-SCACUserRole function removes the specified user role.
Specifies the user role object to remove. To retrieve a user role, use the Get-SCACUserRole cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Description
-----------
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 –Managed | where { $_.Name –eq “UserRole01” }
PS C:\> Remove-SCACUserRole –UserRole $UserRole