18.5 C
Monday, February 6, 2023

ArchiveGuid can’t be set on this object to enable archive mailbox

Property ArchiveGuid can’t be set on this object because it requires the object to have version 0.10 ( or
later. The object’s current version is 0.0 (6.5.6500.0).
+ CategoryInfo : NotSpecified: (:) [Enable-RemoteMailbox], InvalidObjectOperationException
+ FullyQualifiedErrorId : [Server=EXCH0,RequestId=0339d4a8-db1c-4173-8b68-25276bfd921b,TimeStamp=12/6/20
20 8:41:08 AM] [FailureCategory=Cmdlet-InvalidObjectOperationException] A1D7140F,Microsoft.Exchange.Management.Rec
+ PSComputerName : exch0.azure365pro.com

Solution –

Enabling the archive mailbox throws an error “ArchiveGuid can’t be set on this object” as the object was not created properly using an on-premises exchange control panel to create an office 365 mailbox. Turned out to be msExchVersion attribute missing. created an office 365 mailbox. went to active directory users and computers found the working value of msExchVersion and applied the same on non-working objects. As msexchversion differs with the version of the on-prem server. mine was an exchange 2016 hybrid server.

Sample Commands to apply msExchVersion attribute on multiple objects.

((Import-Csv .\samacounts.csv) | ForEach-Object {Get-ADUser $_.samaccountname -Properties msexchversion}) | FT Name,msexchversion
Import-Csv .\archive.csv | ForEach-Object{Set-ADUser $_.samaccountname -add @{msExchVersion="88218628259840"} -WhatIf}
Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Specialized in Microsoft Azure - Office 365 / Microsoft Exchange; conducted numerous projects worldwide in designing, supporting, and implementing messaging and virtualization infrastructure for medium-sized and large enterprises. Further, I am a Cloud Architect and Technical Advisor for various start-ups.

Related Articles


Please enter your comment!
Please enter your name here

× How can I help you?