Get a List of Mail Boxes With Exchange Delegates

If you run a large Exchange environment, or you may have been hired to a company with an existing Exchange infrastructure, but at some point you will want to audit the mail boxes to find any users that have delegated access to their mailbox to other people. Below is a Power Shell script does just that.

$AllUsers = Get-Mailbox * -resultsize:unlimited

ForEach ($Alias in $AllUsers)
     $Mailbox = "" + $Alias.Name + ":\Inbox"
     Get-MailboxFolderPermission -identity $Mailbox | Select User,FolderName,AccessRights `
       | Ft $Mailbox,User,FolderName,AccessRights >> delegates.csv
May 18th, 2012 • Posted in Exchange, PowerShell
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>