Office 365 Add X500 addresses

When doing a Office 365 migration, depending on the migration the ability to respond to or forward emails pre-migration can become broken! This is because the user X500 addresses from the source email system are invalid on the target system. You can manually add the X500 address on the target system using the information from the source system. Here is a brief run down of how to accomplish this with powershell:

1) Run powershell as an admin
2) $LiveCred = Get-Credential
3) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $LiveCred -Authentication Basic –AllowRedirection
4) Set-ExecutionPolicy Unrestricted -Force
5) Import-PSSession $Session

Once the session is started we follow through with this:

1) Get-Mailbox username
2) $user.EmailAddresses+=”X500:/o=VVT/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=useralias”
3) Set-Mailbox username –EmailAddresses $user.EmailAddresses
4) Get-Mailbox username | FL emailaddresses

The information from step 2 is found from the source environment. You can generally find it in the properties of old emails sent internally. This X500 address information needs to be correct and from the source email system otherwise this process is worthless.

This entry was posted in Exchange. Bookmark the permalink.

Comments are closed.