SOLVED

How to enable archive on-prem?

%3CLINGO-SUB%20id%3D%22lingo-sub-2416665%22%20slang%3D%22en-US%22%3EHow%20to%20enable%20archive%20on-prem%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416665%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EHybrid%20here%2C%20we%20create%20our%20mailboxes%20on-prem%20(Exchange%202013-no%20mailboxes%20on-prem)%20and%20let%20them%20sync%20up%20to%20the%20cloud.%3C%2FP%3E%3CP%3EHowever%20for%20some%20reason%20some%20mailboxes%20are%20not%20showing%20on-prem%20anymore%20but%20are%20fine%20in%20the%20cloud.%3C%2FP%3E%3CP%3EI%20can%20recreate%20the%20mailbox%20on-prem%20so%20via%20EAC%20by%20editing%20the%20attributes%20on%20the%20AD%20object%20or%20by%20creating%20a%20new%20%3CEM%3EUser%20Mailbox%3C%2FEM%3E%20but%20the%20archive%20is%20not%20set%2Fcreated%2Fdefined%20on-prem%20(All%20archive%20should%20be%20done%20in%20the%20cloud.)%2C%20this%20only%20happens%20if%20I%20use%20the%20wizard%20%26gt%3B%20%2B%20%26gt%3B%20%3CEM%3EOffice365%20mailbox%3C%2FEM%3E%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture0.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286300i719C577F75357698%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture0.PNG%22%20alt%3D%22Capture0.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20to%20exemplify%3A%3C%2FP%3E%3CP%3EThe%20first%20account%20had%20an%20AD%20object%20and%20a%20O365%20mailbox%20but%20no%20present%20in%20EAC%3C%2FP%3E%3CP%3EThe%20second%20account%20I%20created%20using%20the%20%3CEM%3EOffice%20365%20mailbox%3A%3C%2FEM%3E%3C%2FP%3E%3CP%3EWe%20can%20see%20the%20ArchiveGUID%20and%20ArchiveState%20filled%20in%20on%20the%20second%20one.%3C%2FP%3E%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture1.PNG%22%20style%3D%22width%3A%20566px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286301i3153A668592F3E11%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture1.PNG%22%20alt%3D%22Capture1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20EAC%20we%20can%20see%20the%26nbsp%3B%3CEM%3EMailbox%20type%3C%2FEM%3E%20is%20different%20for%20both%20accounts%3A%3C%2FP%3E%3CP%3EOffice365%20for%20the%20account%20I%20edited%20in%20AD%2FEAC%3C%2FP%3E%3CP%3EOffice365%20(Archive)%20for%20the%20account%20I%20created%20using%20the%20Office365%20mailbox%20and%20selecting%20%3CEM%3Eenable%20archive%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture5.PNG%22%20style%3D%22width%3A%20610px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286303i3979819BF8D49D66%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture5.PNG%22%20alt%3D%22Capture5.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20361px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286304i15C274892940C9CA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAll%20archive%20should%20be%20done%20in%20the%20cloud.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20question%20is%20how%20can%20I%20populate%20the%20ArchiveGUID%20and%20ArchiveState%20properties%20for%20the%20account%20I%20modified%3F%26nbsp%3B%3C%2FP%3E%3CP%3EBit%20long%20....%20sorry...%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2416665%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2013%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2416729%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20archive%20on-prem%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416729%22%20slang%3D%22en-US%22%3ERunning%20Enable-RemoteMailbox%20with%20-Archive%20in%20Onprem%20Exchange%20Powershell%20will%20create%20archive%20mailbox%20directly%20in%20O365.%3CBR%20%2F%3E%3CBR%20%2F%3EExample%20%232%20%40%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fenable-remotemailbox%3Fview%3Dexchange-ps%23example-2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Fenable-remotemailbox%3Fview%3Dexchange-ps%23example-2%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2417300%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20enable%20archive%20on-prem%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2417300%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435691%22%20target%3D%22_blank%22%3E%40amitmtank%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20command%20creates%20the%3CSTRONG%3E%20archive%20on-prem%3A%26nbsp%3B%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture7.PNG%22%20style%3D%22width%3A%20496px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286339i497195A6ABA385B0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture7.PNG%22%20alt%3D%22Capture7.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ewhich%20is%20different%20from%20the%20other%20account%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture8.PNG%22%20style%3D%22width%3A%20554px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F286341i1B5A505CFDF73801%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture8.PNG%22%20alt%3D%22Capture8.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi

Hybrid here, we create our mailboxes on-prem (Exchange 2013-no mailboxes on-prem) and let them sync up to the cloud.

However for some reason some mailboxes are not showing on-prem anymore but are fine in the cloud.

I can recreate the mailbox on-prem so via EAC by editing the attributes on the AD object or by creating a new User Mailbox but the archive is not set/created/defined on-prem (All archive should be done in the cloud.), this only happens if I use the wizard > + > Office365 mailbox:

Capture0.PNG

 

So to exemplify:

The first account had an AD object and a O365 mailbox but no present in EAC

The second account I created using the Office 365 mailbox:

We can see the ArchiveGUID and ArchiveState filled in on the second one.

Capture1.PNG

 

In EAC we can see the Mailbox type is different for both accounts:

Office365 for the account I edited in AD/EAC

Office365 (Archive) for the account I created using the Office365 mailbox and selecting enable archive

Capture5.PNG

Capture.PNG

All archive should be done in the cloud.

 

My question is how can I populate the ArchiveGUID and ArchiveState properties for the account I modified? 

Bit long .... sorry... 

 

 

7 Replies
Running Enable-RemoteMailbox with -Archive in Onprem Exchange Powershell will create archive mailbox directly in O365.

Example #2 @ https://docs.microsoft.com/en-us/powershell/module/exchange/enable-remotemailbox?view=exchange-ps#ex...

@amitmtank 

The command creates the archive on-prem:  

Capture7.PNG

which is different from the other account:

Capture8.PNG

 

 

 

@amitmtank 

So the archive is created on-prem no in cloud:Capture9.PNGCapture10.PNG

best response confirmed by Dolinhas (Occasional Contributor)
Solution

did you run this in onprem exchange shell?
Enable-RemoteMailbox "user name here" -Archive

This supposed to create archive mailbox in O365.

Yes, ran on-prem shell and created a mailbox archive on-prem not in O365
Work fine on another account, I guess the account I did it on was very much broken.
Thanks Amit
Awesome, glad to hear that it's one off account...