Open Exchange Management Shell
First run this command to get a list of the folders a user has
Get-Mailbox -Identity "This email address is being protected from spambots. You need JavaScript enabled to view it." | foreach-object {Get-MailboxFolderStatistics -Identity This email address is being protected from spambots. You need JavaScript enabled to view it. | select-object Identity, ItemsInFolder, FolderSize}
say the user has the following folders listed:
2009 Inbox
2010 Inbox
2013 Inbox
Conversation History
Sync Issues
and we want to get permissions of the 2009 Inbox folder
Get-MailboxFolderPermission -Identity "This email address is being protected from spambots. You need JavaScript enabled to view it.:\2009 Inbox"
and say it has the following user permissions you would like to remove:
NT User:ZACHRY\reynosah
Tassos, Susan
run:
Remove-MailboxFolderPermission -Identity "This email address is being protected from spambots. You need JavaScript enabled to view it.:\" -User "NT User:ZACHRY\reynosah"
Remove-MailboxFolderPermission -Identity "This email address is being protected from spambots. You need JavaScript enabled to view it.:\2009 Inbox" -User "Tassos, Susan"
then run Get-MailboxFolderPermission -Identity "This email address is being protected from spambots. You need JavaScript enabled to view it.:\2009 Inbox" again and you should see the permissions are removed.
to display the root folder permissions run:
Get-MailboxFolderPermission -Identity "This email address is being protected from spambots. You need JavaScript enabled to view it.:\"
Conversely, if you want to add permissions, here are some examples on doing that:
Example 1
This example grants Kevin Kelly full access to Terry Adams's mailbox.
Note: |
---|
The Identity parameter requires the full name of the user to be enclosed in quotation marks ("). |
Add-MailboxPermission -Identity "Terry Adams" -User KevinKelly -AccessRights FullAccess -InheritanceType All
Example 2
This example sets Tony Smith as the owner of the resource mailbox Room 222.
Add-MailboxPermission -Identity "Room 222" -Owner "Tony Smith"
Example 3
This example grants the user Mark Steele Full Access permission to Jeroen Cool's mailbox and disables the auto-mapping feature.
Add-MailboxPermission -Identity JeroenC -User 'Mark Steele' -AccessRights FullAccess -InheritanceType All -AutoMapping $false