Generate HTML Report for Mailbox Permissions with Powershell

This script creates a HTML Report showing Send as, Full Access and Send on Behalf Permissions information for each mailbox for your Exchange 2010 Organization, for a selected database or for a single user.

4.8 Star
14,469 times
Add to favorites
E-mail Twitter Digg Facebook
  • How to run and use the script.
    2 Posts | Last post June 08, 2019
    • Hi Serkan,
      I am desperately trying to use this script however I have been unsuccessful.
      I run the script and this is what I do to result a single mailbox.
      HTMLReport: .\Report-MailboxPermissions.ps1  -Mailbox IT.Support -HTMLReport C:\Temp\IT.Support.html
      No Mailbox Found. Ended without compiling a report. Please Check Your Input.
      Please advice,
      Really appreciate your input.
      K Patel
    • HI Kaushik Bhuva,
      You probably found your answer so far, however I will write what helped in my case as maybe other users may face with this problem. It was changing initial params names. PowerShell differentiates upper and lowercase variables so $Mailbox is not the same as $mailbox and $Database is not the same as $database. In script, in param section definitiones of variables uses uppercase so once I change it to lowercase script is working like a charm. Thank you Serkan for this great piece of code!
  • run by server name
    1 Posts | Last post January 29, 2019
    • it'd be great to run this on a server level instead of by each database.   is this possible ?
  • Unwanted linked mailbox owner showing in full access permissions
    1 Posts | Last post July 31, 2018
    • Hi there,
      The problem i have encountered is that within my environment, each mailbox no matter the type, has the associated account as a non inherited value.
      Thereby, resulting in each mailbox showing the AD account in each mailbox as full access permission.
      I believe that this is a result of our mailboxes being setup as linked mailbox type due to having a multi forest Exchange environment that is being merged into one.
      What i would like to know is if it is possible to either modify the existing script to not include this account or provide a way to report this information as required.
      It is showing the user who is associated with the mailbox as someone who is assigned the permissions, even though they will already be assigned permissions using NT AUTHORITY\SELF
      I would like to remove the user account from occurring and report only the NON 'owner' accounts to get an accurate result of mailbox with additional permissions assigned.
      Any help is appreciated
  • Orphaned SIDS
    1 Posts | Last post May 15, 2018
    • Hi,
      Great script, I use it every week to record the permissions and store them in a SharePoint library which provides an easy way to provide this information to managers.
      Is it possible to exclude the SIDS from displaying?
  • can we use Input file ?
    1 Posts | Last post April 03, 2018
    • I would like to run a report against list of users from input file. Please let me know if possible or OU base filtering 
  • GUID to Alias
    3 Posts | Last post April 03, 2018
    • This script is very nice, but I would like to have the output list the alias rather than the GUID for the discovered objects.
      Anyone know how to do that?
    • The GUID should only be for objects that were granted permissions and then deleted out of AD after.  Removing a user account from AD doesn't retroactively go through and delete it's existence from all object (AD and otherwise) so you'll see artifacts like this.  It's one reason I move users who are gone to a special OU rather than deleting them.
    • awesome script. Can we do input file in this script ? If I only want to run against some users ?
  • Doesn't work
    1 Posts | Last post November 09, 2017
    • Just says no mailbox found. ended without compiling report. thanks
  • Great Script Can i Export these result into Excel
    1 Posts | Last post April 30, 2017
    • Hi great Script can export result in to Excel and can you help me out pulling out Calendar for each user.
  • CSV format
    1 Posts | Last post July 25, 2016
    • Hi this is a great script, good work!
      However, is there an alternative version with .csv output?  It's handy to be able to filter and manipulate the data, so if you have this already then that would even better.
  • Run the Report for a single OU
    3 Posts | Last post April 21, 2016
    • I would like to modify the report to include a parameter for searching only a specific OU. I have started to experiment with this, but the report still seems to pull the data from all mailboxes even though the progress only runs through the ones in the OU I selected. Currently I have only modified the Get-Mailbox commands at the beginning of the _Progress function. Any suggestions of how to do this?
    • Hi JeeNz, I'm probably late to the party, but I've modified the script for OU support because I had the same need for it. You can find an updated version here:
    • Can you do similar to Office 365 ? I really like your script. 
1 - 10 of 21 Items