The week I had a migration, from Exchange 2010 to Office 365 in a hybrid environment.
Some users were migrated to Office 365, most of the users, where located in the local Exchange.
The local users had no online archive, the Office 365 users must have an online archive.
When activating the online archive for the Office 365 users in the Office 365 tenant, this error is posted:
Error:
The following error occurred during validation in agent ‘Windows LiveId Agent’: ‘Can’t enable the archive for ‘Richard Voogt’ because this user object is synchronized with the on-premises directory. To enable a cloud-based archive mailbox for this user, you must use your on-premises Exchange admin center or Exchange Management Shell.’
Solution:
Prerequisites:
· The Active Directory Module for Windows PowerShell must be installed on the management computer.
· The management computer must have .NET 4.0 or a later version installed.
· The management computer must be domain-joined to the on-premises AD forest of the users who will be managed.
· The operator must have Account Operator permissions or equivalent rights.
· The enable-remotearchive.ps1 and disable-remotearchive.ps1 scripts must be on the management computer.
This is the command to activate the online archive:
Enable-remotearchive.ps1 -Identity “rvoogt”
The Archive is available after a short time.
Deprovisioning an archive:
This is the command to deactivate the online archive:
disable-remotearchive.ps1 -Identity “rvoogt”