Forum Discussion
ldolenak
Feb 23, 2023Copper Contributor
Public Folder Permissions Export
We currently have a large public folder environment (~500,000 folders and 17TB) and are planning a migration to the cloud and during this process, we're trying to reduce the size of our environment. We need to get in touch with all of the Owners of the folders, so we're trying to export a list of folder permissions for the public folder tree.
When running the command at the bottom of the post, it either times out and hangs after a while, or spits out the following error:
+ CategoryInfo : OperationStopped: (<SERVER>:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : JobFailure
I've tested this on a small subset of folders and it works, but due to our large environment it doesn't seem to run properly. Is there a better way to export the folder permissions for our entire public folder tree?
"Get-PublicFolder -Recurse -resultsize unlimited | Get-PublicFolderClientPermission | Select-Object Identity,@{Expression={$_.User};Label="User"},@{Name='AccessRights';Expression={[string]::join(', ', $_.AccessRights)}},@{label="PrimarySmtpAddress";expression={(Get-Mailbox $_.User.displayname).PrimarySmtpAddress}} | export-csv C:\pubpermission.csv -NoTypeInformation"
No RepliesBe the first to reply