Consider the following scenario :
You have an hybrid environment , When you try to enable archive through the office 365 portal you get the following massage :
Mailboxes that you move to the cloud from your on-premises exchange become “mail enabled” in your on-premises environment, if you want to enable archiving (in your on-premises server) you can do that via the exchange management console or power shell .
In the exchange management console go to: Recipient configuration -> mail contact -> right click on the mailbox you want to enable fpr archiving -> Enable hosted archive
After that you need to sync (“Start-OnlineCoexistenceSync” using the Dirysinc powershell) , only then you will be able to see that your mailbox is enabled for archiving in the office 365 portal.
If you want to enable archive for all users using Exchange Power shell, type the following command:
Get-remotemailbox | enable-remotemailbox -archive
If you cannot see the option “Enable hosted archive” its possibly because the Enable-RemoteMailbox commandonly works on mailboxes that contain Exchange 2010 mailbox property values.
To work around this problem,connect to ADSIedit under the problematic user change the value of the msExchVersion in property to 44220983382016 .

Sr. Cloud Solution Architect at Microsoft, I’m passionate about helping customers succeed by building secure, scalable, and innovative cloud solutions – with a strong focus on AI, DevOps practices, and end-to-end security. With a proven track record in the IT and services industry, I serve as a trusted advisor, partnering closely with organizations to guide them through digital transformation and maximize the value of their cloud investments.
My role combines technical leadership with project ownership – from designing modern architectures to leading cross-functional implementations that drive real business outcomes. I also manage and empower strategic partners, working hand-in-hand with them to ensure project success and deliver measurable business impact for customers.
 
			

