Forum Discussion
COYO IT Support
Dec 27, 2017Copper Contributor
Azure AD Connect > Managing with Powershell
Hi Guys,
1. We currently run Azure AD Connect with our 2011 server to Sync with Office 365.
I have a shared mailbox that somehow has the default Microsoft email address as the primary ema...
COYO IT Support
Dec 27, 2017Copper Contributor
Hello,
Even using the Exchange Powershell I get an error but it is being synced with Azure AD Connect (formerly Azure AD Sync)
I have attached a screenshot of the error.
Thanks
Maluks
Dec 27, 2017Iron Contributor
Well I can see that you have Exchange on-premises. What primary SMTP address is set in Exchange? Are you able to change email address via ECP?
As from error message it says that you have to change this internaly, afterwards changes should be synced to cloud
- COYO IT SupportDec 27, 2017Copper Contributor
We don't use an onsite exchange server any more.
I [solved] it by doing the following:
** - REMOVE USERS: (caution back up .pst offline emails first)
1. Move the AD user on your local server into a No sync folder
2. Sync the AD with Start-ADSyncSyncCycle -PolicyType Delta
3. This will put the AD user on Office 365 into the recycling bin.
4. Get-MsolUser -ReturnDeletedUsersThen permanantly delete the user:
5. Remove-MsolUser –UserPrincipalName user@mycompany.com -RemoveFromRecycleBin6. Move the AD user back into the SYNC folder and force a sync
** - FORCE SYNC NOW
7. Start-ADSyncSyncCycle -PolicyType Delta
8. Check the Office 365 Portal > Done.
Thanks for your assistance.