Last updated: 2017-10-10
Description
This script removes the proxy address(es) for a selected protocol from mail-enabled public folders.
Any proxy address with a given protocol is removed from the proxy addresses list.
The script can fix the alias of mail-enabled public folders as well. The code used is based upon a blog post by Shay Levy.
Examples
# EXAMPLE 1# Check mail enabled public folders for proxy addresses having "MS:" as a protocol type.# Do not remove and update addresses, but log found addresses to RemovedAddresses.txt.\Clean-MailEnabledPublicFolders.ps1 -ProtocolToRemove "MS:*" # EXAMPLE 2# Check mail enabled public folders for proxy addresses having "MS:" as a protocol type.# Remove and update addresses and log found addresses to RemovedAddresses.txt.\Clean-MailEnabledPublicFolders.ps1 -ProtocolToRemove "MS:*" -UpdateAddresses
Version History
- 1.0, Initial community release
- 1.1, FixAlias added, cleanup logic changed
- 1.2, Some minor PowerShell updates
Links
- Download and follow at Github: https://github.com/Apoc70/Clean-MailEnabledPublicFolders
- Download and like at TechNet Gallery: https://gallery.technet.microsoft.com/Script-to-remove-unwanted-9d119c6b
Follow
- Twitter @stensitzki
Additional Note
This Powershell script has been optimized using the ISESteroids™ add-on. Learn more about ISESteroids™ here.