How to get mailbox folder permissions to all mailbox folders in all mailboxes?
Is it possible and how do you do it? I would like to be able to get mailbox folder permissions to all mailbox folders in all mailboxes. For example who has access to what. Get-mailbox, Get-MailboxFolder, and Get- MailboxFolderPermissions are all very simple commands but have proven a little tricky when combining. I thought there could be something like Get-Mailbox and then foreach get-mailboxfolders piped to get-mailboxfolderpermissions, but that didn’t pan out. Also at the same time, it would be great to thin out the Defaults and Anonymous's. Any thought would be appreciated. Thanks…
January 9th, 2012 5:01pm

I thought there could be something like Get-Mailbox and then foreach get-mailboxfolders piped to get-mailboxfolderpermissions, but that didn’t pan out. Hi Lance, You cannot run the cmdlet Get-MailboxFolder to get all folders for ALL mailboxes. You can only run the cmdlet against oneself who open the EMS because the cmdlet is only contained in the MyBaseOptions Manage Role(The Management Scope is Self). Please try to develop your script by using Get-MailboxFolderStatistic. For example: Get-MailboxFolderStatistic "usermailbox" | ft name,folderpath http://technet.microsoft.com/en-us/library/aa996762.aspxFrank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2012 1:25am

Lance, I came accross your post because I wanted the same thing and was frustrated that it was missing. Here is a snippet that will get all the folder objects and all the folder permissions for a user: $SpecialExchangeFolders = "Top of Information Store|Recoverable Items|Deletions|Purges|Versions" $CurrentUser = gci env:username | % { $_.value } [string[]] $FolderPaths = Get-MailboxfolderStatistics $CurrentUser | % {$_.folderpath} $ExchangeFolderPaths = $FolderPaths | % {$CurrentUser + ":" + $_.replace('/','\')} $UsableExchangeFolderPaths = $ExchangeFolderPaths | where { $_ -notmatch $SpecialExchangeFolders } $UsableExchangeFolderPaths | % { get-mailboxfolder $_ } $UsableExchangeFolderPaths | % { get-mailboxfolderPermission $_ } Hopefully this will help get you started on whatever you were trying to accomplish. Thanks, Chris
April 26th, 2012 4:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics