Forum Discussion
Chris Stewart
May 23, 2018Brass Contributor
Enable-RemoteMailbox -Archive Parameter set cannot be resolved
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
- 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.
- Jerry MeyerIron Contributor
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