Advertisement
goezler

Export Public folders, Permissions, sizes

Jul 18th, 2024
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
  2. #EXPORT ALL PUBLIC FOLDER PROPERITIES
  3. Get-PublicFolder -Identity '\' -Recurse -ResultSize Unlimited | Select-Object -Property * | Export-Csv -Path PathToFile.csv -Delimiter ';' -Encoding UTF8
  4.  
  5. #EXPORT ALL PUBLICFOLDERS' PERMISSIONS
  6. Get-PublicFolder -Identity '\' -Recurse -ResultSize Unlimited | Get-PublicFolderClientPermission | Select Identity,FolderName,User,@{name="AccessRights";expression={ [string]::join(",",@($_.accessrights)) }} | Export-Csv -Path C:\PathToFile.csv -Delimiter ';' -Encoding UTF8
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement