Export Public Folder Permission in Exchange 2010


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 (7)

  1. Anonymous says:

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

  2. Matt says:

    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

  3. Matt is Right says:

    Yes Matt is right. one s chacter must delete.

  4. Ryan says:

    It’s truncating the fields.

  5. Tom says:

    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.

  6. Vlad says:

    thank you !

  7. Pete says:

    That worked for me – Thanks