Generate Mailbox Permission Report using Powershell

closeBu yazı 2 yıl 7 ay 22 gün önce yayınlanmış olduğundan güncelliğini yitirmiş veya içeriğindeki bilgilerin geçerliliği kaybolmuş olabilir. Herhangi bir yanlış anlaşılmadan bu site sorumlu değildir.

Makalenin Türkçe versiyonuna buradan ulaşabilirsiniz.

One of the most requested tasks that I usually hate to do is reporting mailbox permissions. I used to do it with different commands and reporting was consuming a lot of time. Last week a request from a client was simple, they wanted HTML report that will be published on Sharepoint for Exchange Admins to keep track for Send as, Full Access and Send on Behalf permissions on each mailbox.

For this reason I wrote Report-MailboxPermissions.ps1 script.

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. By Default Inherited permissions and NT Authority\Self account will not be shown in the report unless you run the script with the parameters listed below. Also by default all mailboxes will be reported; if you want to report a single database, you can use -database parameter to specify your database name or you can get the report for a single user by using -mailbox parameter.

Examples:

For a single Mailbox:

.\Report-MailboxPermissions.ps1  -Mailbox s.varoglu -HTMLReport C:\Temp\Svaroglu.html

For all mailboxes in a single database

.\Report-MailboxPermissions.ps1  -Database DB1  -HTMLReport C:\Temp\DB1.html

For all mailboxes

.\Report-MailboxPermissions.ps1  -HTMLReport C:\Temp\DB1.html

As I mentioned by default Inherited permissions and NT Authority\Self account will not be shown in the report. You can use -ShowInherited switch to report Inherited Permissions. To show NT Authority\Self account in report you can use -ShowSelf switch. You can use them both in the same report if you need to.

.\Report-MailboxPermissions.ps1  -Database DB1  -HTMLReport C:\Temp\DB1.html  -ShowInherited
.\Report-MailboxPermissions.ps1  -Database DB1  -HTMLReport C:\Temp\DB1.html  -ShowSelf

You can not use -Database and -Mailbox switches at the same report.

Download: [download id="33"]

Important Reminder This code is made available as is, without warranty of any kind. The entire risk of the use or the results from the use of this code remains with the user.

Yayınlayan: Serkan Varoğlu

Yıldız Teknik Üniversitesi Elektrik Mühendisliğini bitirdim. Türkiye'de birçok farklı sektör ve firmada Sistem Yöneticiği yaptım. Bermudada 3 yıla yakın danışmanlık yaptıktan sonra şu anda İrlanda'da çalışma hayatıma devam ediyorum.