Home

Enable-RemoteMailbox -Archive Parameter set cannot be resolved

%3CLINGO-SUB%20id%3D%22lingo-sub-196930%22%20slang%3D%22en-US%22%3EEnable-RemoteMailbox%20-Archive%20Parameter%20set%20cannot%20be%20resolved%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-196930%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20title%3D%22Enable-RemoteMailbox%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Ffederation-and-hybrid%2Fenable-remotemailbox%3Fview%3Dexchange-ps%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EEnable-RemoteMailbox%3C%2FA%3E%20documentation%2C%20see%20Example2%2C%20seems%20to%20suggest%20the%20following%20command%20should%20work%3C%2FP%3E%3CP%3E%3CSTRONG%3EEnable-RemoteMailbox%20-Identity%20fake%40fake.com%20-RemoteRoutingAddress%20fake%40fake.mail.onmicrosoft.com%26nbsp%3B%20-archive%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20throws%20the%20error%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3EParameter%20set%20cannot%20be%20resolved%20using%20the%20specified%20named%20parameters.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20CategoryInfo%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3A%20InvalidArgument%3A%20(%3A)%20%5BEnable-RemoteMailbox%5D%2C%20ParameterBindingException%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20AmbiguousParameterSet%2CEnable-RemoteMailbox%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20PSComputerName%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3A%20dc001smail1.hawkinsinc.com%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20we%20enable%20a%20remote%20mailbox%20and%20create%20an%20archive%20mailbox%3F%3CBR%20%2F%3E%3CBR%20%2F%3EUPDATE%3A%26nbsp%3B%20Based%20on%20another%20forum%2C%20it%20looks%20like%20if%20we%20run%20the%20command%202%20times%20it%20will%20both%20enable%20the%20mailbox%20and%20the%20archive.%3CBR%20%2F%3E%3CSTRONG%3EEnable-RemoteMailbox%20-Identity%20fake%40fake.com%20-RemoteRoutingAddress%20fake%40fake.mail.onmicrosoft.com%3CBR%20%2F%3EEnable-RemoteMailbox%20-Identity%20fake%40fake.com%20-archive%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fmsoffice_o365admin-mso_dep365%2Ferror-enable-remotemailbox-with-archive%2Fe193e270-bf8e-439e-8187-5851c4172a9c%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fmsoffice_o365admin-mso_dep365%2Ferror-enable-remotemailbox-with-archive%2Fe193e270-bf8e-439e-8187-5851c4172a9c%3C%2FA%3E%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-196930%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201508%22%20slang%3D%22en-US%22%3ERE%3A%20Enable-RemoteMailbox%20-Archive%20Parameter%20set%20cannot%20be%20resolved%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201508%22%20slang%3D%22en-US%22%3EWe%20are%20talking%20about%20Enable-RemoteMailbox%20and%20not%20Enable-Mailbox.%20The%20examples%20at%20the%20top%20of%20the%20document%20are%20correct%20and%20not%20Example%202.%20You%20need%20to%20run%20the%20following%20two%20cmdlets.%20The%20first%20to%20make%20the%20remote%20mailbox%20and%20the%20second%20to%20add%20an%20archive%20to%20that%20remote%20mailbox%3A%20Enable-RemoteMailbox%20-Identity%20fake%40fake.com%20-RemoteRoutingAddress%20fake%40fake.mail.onmicrosoft.com%20Enable-RemoteMailbox%20-Identity%20fake%40fake.com%20-Archive%20If%20you%20want%20to%20create%20the%20archive%20only%20in%20the%20cloud%20then%20that%20is%20Enable-Mailbox%20-ArchiveDomain%20fake.mail.onmicrosoft.com%20(using%20Enable-Mailbox%20to%20update%20the%20mailbox%20on-premises%20but%20with%20an%20archive%20at%20the%20URL%20namespace%20mentioned.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198192%22%20slang%3D%22en-US%22%3ERe%3A%20Enable-RemoteMailbox%20-Archive%20Parameter%20set%20cannot%20be%20resolved%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198192%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20im%20right%20you%20should%20just%20load%20in%20exchange%20online%20PowerShell.%20Next%20up%20you%20just%20hit%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EEnable-Mailbox%20%22Jerry%20Meyer%22%20-Archive%3C%2FPRE%3E%3CP%3ETo%20check%20if%20this%20has%20worked%20type%20in.%3C%2FP%3E%3CPRE%3EGet-Mailbox%20%22Jerry%20Meyer%22%20%7C%20FL%20Name%2C*Archive*%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj984357(v%3Dexchg.150).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fjj984357(v%3Dexchg.150).aspx%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Chris Stewart
Contributor

Enable-RemoteMailbox documentation, see Example2, seems to suggest the following command should work

Enable-RemoteMailbox -Identity fake@fake.com -RemoteRoutingAddress fake@fake.mail.onmicrosoft.com  -archive

 

It throws the error:

Parameter set cannot be resolved using the specified named parameters.

    + CategoryInfo          : InvalidArgument: (:) [Enable-RemoteMailbox], ParameterBindingException

    + FullyQualifiedErrorId : AmbiguousParameterSet,Enable-RemoteMailbox

    + PSComputerName        : dc001smail1.hawkinsinc.com

 

How can we enable a remote mailbox and create an archive mailbox?

UPDATE:  Based on another forum, it looks like if we run the command 2 times it will both enable the mailbox and the archive.
Enable-RemoteMailbox -Identity fake@fake.com -RemoteRoutingAddress fake@fake.mail.onmicrosoft.com
Enable-RemoteMailbox -Identity fake@fake.com -archive


https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_dep365/error-enable-remote...

 

 

2 Replies

If im right you should just load in exchange online PowerShell. Next up you just hit

 

Enable-Mailbox "Jerry Meyer" -Archive

To check if this has worked type in.

Get-Mailbox "Jerry Meyer" | FL Name,*Archive*

 https://technet.microsoft.com/en-us/library/jj984357(v=exchg.150).aspx

We are talking about Enable-RemoteMailbox and not Enable-Mailbox. The examples at the top of the document are correct and not Example 2. You need to run the following two cmdlets. The first to make the remote mailbox and the second to add an archive to that remote mailbox: Enable-RemoteMailbox -Identity fake@fake.com -RemoteRoutingAddress fake@fake.mail.onmicrosoft.com Enable-RemoteMailbox -Identity fake@fake.com -Archive If you want to create the archive only in the cloud then that is Enable-Mailbox -ArchiveDomain fake.mail.onmicrosoft.com (using Enable-Mailbox to update the mailbox on-premises but with an archive at the URL namespace mentioned.
Related Conversations
How to export Office 365 mailbox to PST?
alainajodi in Office 365 on
8 Replies
Online archive of mailbox
James Draper in Office 365 on
2 Replies
Archive a project in Azure DevOps
gresdawg in Azure on
9 Replies
Teams: Archiving Feature?
Adam Tobias in Microsoft Teams AMA on
11 Replies