Skip to content

Instantly share code, notes, and snippets.

@edingc
Last active August 29, 2015 14:09
Show Gist options
  • Save edingc/a6830d610a56a2cc5824 to your computer and use it in GitHub Desktop.
Save edingc/a6830d610a56a2cc5824 to your computer and use it in GitHub Desktop.
PoSh One-Liner to Export Top-Level Public Folders and Owners to CSV
Get-PublicFolder -Recurse | Where-Object { $PSItem.ParentPath -eq "\" } | Get-PublicFolderClientPermission | Where-Object { $PSItem.AccessRights -contains "Owner" } | Export-CSV .\PF_Owners.csv -NoTypeInformation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment