New-PublicFolder -Name "UK" -MailEnabled $true Path "\"
Remove-PublicFolder -Identity "\UK"
By default all users have "Author" rights on the public folder - so we will remove this in our case - but firstly we should remove it's exisiting permisisons:
Remove-PublicFolderClientPermission -Identity "\Test" -User "Default"
and then assign "Default" (all users not defined within the permissions) no access rights:
Add-PublicFolderClientPermission -Identity "\Test" -User "Default" -AccessRights "None"
We can then explicity assign permissions to induvidual users:
Add-PublicFolderClientPermission -Identity "\Test" -AccessRights PublishingEditor -User <username>
or to a root public folder and all of it's child public folders using a powershell script included with Exchange:
AddUsersToPFRecursive.ps1 -TopPublicFolder "\Test" -User "Username" -Permission Reviewer
To delete a public folder and all of it's child folders (recursive delete):
Remove-PublicFolder -Identity "\Test\Directory Folder" -Recurse
We can review public folder permissions with:
Get-PublicFolderClientPermission "\Test"
0 comments:
Post a Comment