Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

Clean-PublicFolderACL.ps1

Remove orphaned users and groups from legacy public folder ACLs

Description

This scripts removes or updates users in legacy public folder ACLs. This reduces the likelihood of legacy public folder migration errors due to corrupted ACLs.

Parameters

RootPublicFolder

Root public folder for recurse checkign of ACLs

PublicFolderServer

Exchange public folder server to query and write to

ValidateOnly

Only validate ACL, do not make any changes. Affects only ACL entries which are not "fully orphaned" users (S-1-*)

SkipOrphanedUserCheck

Skip orphaned users check

Recurse

Check public folder client permission recursively. Without this switch the script will only check the client permissions in the folder defined in RootPublicFolder

Examples

.\Clean-PublicFolderACL.ps1 -RootPublicFolder "\MYPF" -PublicFolderServer EX2010 -ValidateOnly -Recurse

Validate ACLs on public folder \MYPF and all of it's child public folders on Exchange server EX2010

.\Clean-PublicFolderACL.ps1 -RootPublicFolder "\MYPF" -PublicFolderServer EX200701 -Recurse

Clean ACLs on public folder \MYPF and all of it's child public folders on Exchange server EX200701

Note

THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.

TechNet Gallery

Find the script at TechNet Gallery

Credits

Written by: Thomas Stensitzki

Stay connected

For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos