This script could be used to remove invalid e-mail addresses for mailbox in Microsoft Exchange 2010. You can find these mailboxes which contains invalid e-mail addresses by using specific string or regular expression.
In a real world, IT Administrators need to modify the e-mail addresses for mailbox due to following reasons:
- Addition domain in SMTP Address after migration
- Wrong design in e-mail address policy
- Change by accident
- Some special requests by IT Administrators
It will be a time-consuming task in a large scale deployment.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery