Undo Management-Role Assignments.
I was running a test and now I can't reverse the command I ran. How do I reverse this command? New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator I've tried remove-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator But it errors out
October 27th, 2010 2:05pm

How do I remove the administartor? Or set it back to the default which I think is nobody has the role.
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 2:32pm

Hiya, Use the following command to check that Administrator has a role assignment for the Mailbox Import Export role: Get-ManagementRoleAssignment | Where {$_.Role -eq "Mailbox Import Export" -and $_.RoleAssigneeName -eq "Administrator"} Then Remove the relevant Management Role Assignments: Get-ManagementRoleAssignment | Where {$_.Role -eq "Mailbox Import Export" -and $_.RoleAssigneeName -eq "Administrator"}| Remove-ManagementRoleAssignment SteveSteve Goodman Check out my Blog for more Exchange info or find me on Twitter
October 27th, 2010 4:29pm

if you could share what are you trying to accomplish we will be able to guide you better you would need to specify the parent role. once you have the parent role you can remove rights on the child role here is a good insight on the RBAC and how it works http://msexchangeteam.com/archive/2009/11/16/453222.aspx Dhruv
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 4:41pm

Hi Dhruv, Check out my post above - it will search for the Direct Management Role Assignment matching the command Crac ran and then allow him to remove it. SteveSteve Goodman Check out my Blog for more Exchange info or find me on Twitter
October 27th, 2010 5:00pm

Thank-you I appreciate it.
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 9:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics