Export Public Folder Permission in Exchange 2010

Export Public Folder Permission in Exchange 2010

  • Comments 5
  • Likes

I was asked how can we export Public Folder Permission including each nested folder to a CSV or TEXT File before restrict the users? And is there a way to re-assign the same permission to the particular Public Folder in the future?

 

This is very much achievable. Please follow below solution.  

 

Get-PublicFolderClientPermission:

Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | Select-Object Identity,@{Expression={$_.User};Label="User";},@{Expression={$_.AccessRights};Label="AccessRights";} | Export-Csv C:\PublicFolderClientPermission.csv

 

 

Get-PublicFolderAdministrativePermission:

Get-PublicFolder \ -Recurse | Get-PublicFolderAdministrativePermission| Select-Object Identity,@{Expression={$_.User};Label="User";},@{Expression={$_.AccessRights};Label="AccessRights";},IsInherited,Deny | Export-Csv C:\PublicFolderAdministrativePermission.csv

 

 

Add-PublicFolderClientPermission - http://technet.microsoft.com/en-in/library/bb124743(v=exchg.150).aspx

Add-PublicFolderAdministrativePermission - http://technet.microsoft.com/en-in/library/aa997986(v=exchg.80).aspx

 

Thank you,

Mukut- 

Comments
  • Took me forever to figure out why the first script wouldn't work. There is an extra 's' in permission in your script.

    Get-PublicFolderClientPermisssion <--Extra S in permission

  • Yes Matt is right. one s chacter must delete.

  • It's truncating the fields.

  • Thank you guys. I have just removed the extra S.

  • I couldn't get it to output to CSV on PS 2.0 without selecting as it thought I was trying to run pipes concurrently. Aside from that, it was awesome, thanks.

    Mine reads:
    Get-PublicFolder \ -Recurse | Get-PublicFolderClientPermission | Select-Object Identity,@{Expression={$_.User};Label="User";},@{Expression={$_.AccessRights};Label="AccessRights";} | select * | Export-Csv -path c:\blahblahblah.csv

    HTH.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment