Check if a user account have permissions on an Exchange mailbox

Check if a user account have permissions on an Exchange mailbox

The script below will help you to find if a group of users have permissions on a mailbox hosted on an Exchange server. The group list is built by querying a specific OU in the Active Directory. In the example, the OU distinguished name is : OU=Users,DC=domain,DC=net

The Exchange database defined in the variable $exch_db can be either specific or generic using wildcard :

  • $exch_db = "specific_Exch_dbname"

or

  • $exch_db = "Exch_dbname*"

The script will check if each user found in OU=Users,DC=domain,DC=net have permissions on a mailbox hosted on the Exchange db specified above. At the end, a csv file is created containing for each line :
Mailbox_Identity , AD user account , Mailbox_LegacyDN , Mailbox_size_in_MB


Reference

Get-MailboxPermission

<>

My Powershell script categories

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: