question

emilemilmammadli-6480 avatar image
0 Votes"
emilemilmammadli-6480 asked KaelYao-MSFT edited

Enable mailbox archive and choose database for archive

Hello everyone,


I want to multiple users' mailbox enable archive via powershell at Exchange Server 2013.

Get-Mailbox -Database Test01 -Filter "ArchiveGuid -Eq $null -AND ArchiveDomain -eq $null -AND Name -NotLike 'DiscoverySearchMailbox*'" | Enable-Mailbox -Archive


I've this script. It works. But I want to choose different database for archive. How can I do? Please help me.

windows-server-powershelloffice-exchange-server-administration
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @emilemilmammadli-6480

As LimitlessTechnology mentioned, there is a parameter named ArchiveDatabase in the cmdlet Enable-Mailbox, which can be used to specify the database of the archive mailbox.
189528-27.png


0 Votes 0 ·
27.png (14.7 KiB)

Hi @emilemilmammadli-6480

I am writing here to confirm with you how thing going now?
Please let us know if you would like further assistance.

0 Votes 0 ·

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi @emilemilmammadli-6480

You will need to add the swtich -ArchiveDatabase <archive>

Hope this helps with your query,


--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.