Remove orphaned users and groups from legacy public folder ACLs
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.
Root public folder for recurse checkign of ACLs
Exchange public folder server to query and write to
Only validate ACL, do not make any changes. Affects only ACL entries which are not "fully orphaned" users (S-1-*)
Skip orphaned users check
Check public folder client permission recursively. Without this switch the script will only check the client permissions in the folder defined in RootPublicFolder
.\Clean-PublicFolderACL.ps1 -RootPublicFolder "\MYPF" -PublicFolderServer EX2010 -ValidateOnly -RecurseValidate ACLs on public folder \MYPF and all of it's child public folders on Exchange server EX2010
.\Clean-PublicFolderACL.ps1 -RootPublicFolder "\MYPF" -PublicFolderServer EX200701 -RecurseClean ACLs on public folder \MYPF and all of it's child public folders on Exchange server EX200701
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.
Find the script at TechNet Gallery
Written by: Thomas Stensitzki
- My Blog: http://justcantgetenough.granikos.eu
- Twitter: https://twitter.com/stensitzki
- LinkedIn: http://de.linkedin.com/in/thomasstensitzki
- Github: https://github.com/Apoc70
- MVP Blog: https://blogs.msmvps.com/thomastechtalk/
- Tech Talk YouTube Channel (DE): http://techtalk.granikos.eu
For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos
- Blog: http://blog.granikos.eu
- Website: https://www.granikos.eu/en/
- Twitter: https://twitter.com/granikos_de