VB script that discovers all mailboxes within the domain and compares the User Principal Name (UPN) to email address for the object. If they are different, it will log it to the file.
- Launch the command prompt (cmd.exe).
- Download the following script: Check-Exchange2003UserPrincipalNameAndEmailAddress.zip
- Run the script on a computer that is joined to the domain you wish to update the user accounts for.
When the script is done executing, you will see a confirmation dialog. A file will be created within the same directory called "Check-Exchange2003UserPrincipalNameAndEmailAddress.txt" which contains all accounts with non-matching UPNs to their email addresses.