Enable mailbox archive and choose database for archive

Emil Mammadli 21 Reputation points
2022-04-01T07:08:19.76+00:00

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.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,356 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,383 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,371 Reputation points
    2022-04-01T10:50:43.673+00:00

    Hi @Emil Mammadli

    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--

    0 comments No comments