Announcement

Collapse
No announcement yet.

Remove one user from all mailbox access permissions

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remove one user from all mailbox access permissions

    An old admin added his admin account to all mailboxes on our three Exchange 2007 servers, to the "Manage Full Access Permission" property of each.

    I would like to remove this username from each mailbox, and have found that the following works on one particular mailbox:
    Remove-MailboxPermission -Identity Test1 -User Test2 -AccessRights FullAccess -InheritanceType All
    How do I modify this so that it works on all mailboxes? Thanks.

    I'm thinking maybe this will work:
    Get-Mailbox | Remove-MailboxPermission -Identity Test1 -User Test2 -AccessRights FullAccess -InheritanceType All
    But I don't want to run test scripts on my production server.
    |
    +-- JDMils
    |
    +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
    |

  • #2
    Re: Remove one user from all mailbox access permissions

    Isnt this why Powershell has the whatif switch?
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Remove one user from all mailbox access permissions

      Tom,

      I'm new to PS so that info helps. I've managed to modify the command to:
      Get-Mailbox | Remove-MailboxPermission -User Test2 -AccessRights FullAccess -InheritanceType All
      Works a treat! Thanks.
      |
      +-- JDMils
      |
      +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
      |

      Comment

      Working...
      X