Posted in
Virtual Machine Manager,
Windows Powershell |
No Comment | 3,453 views | 17/02/2009 19:59
You can remove/delete your user role with this command:
1
2
3
| $UserName = "JohnH"
$RemoveRole = Get-VMMUserRole | where {$_.Name -eq "$UserName"}
Remove-VMMUserrole -Userrole $RemoveRole |
$UserName = "JohnH"
$RemoveRole = Get-VMMUserRole | where {$_.Name -eq "$UserName"}
Remove-VMMUserrole -Userrole $RemoveRole
You should use Get-VMMUserRole command to use Remove-VMMUserrole command.