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 - https://technet.microsoft.com/en-in/library/bb124743(v=exchg.150).aspx

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

 

Thank you,

Mukut-

Comments

  • Anonymous
    January 01, 2003
    Thank you guys. I have just removed the extra S.
  • Anonymous
    October 24, 2014
    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
  • Anonymous
    March 23, 2015
    Yes Matt is right. one s chacter must delete.
  • Anonymous
    April 17, 2015
    It's truncating the fields.
  • Anonymous
    May 07, 2015
    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.
  • Anonymous
    November 05, 2015
    thank you !
  • Anonymous
    March 03, 2016
    That worked for me - Thanks