Skip to content

Instantly share code, notes, and snippets.

@djdefi
Created June 4, 2014 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djdefi/1184f413c4d7eee7aa2b to your computer and use it in GitHub Desktop.
Save djdefi/1184f413c4d7eee7aa2b to your computer and use it in GitHub Desktop.
Get list of Exchange Delegates
$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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment