25 C
Dubai
Thursday, March 28, 2024

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 (14.0.100.0) 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
ipientTasks.EnableRemoteMailbox
+ 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
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?