Hi folks,
Just wanted to share with you a quick script on how to enable archive mailbox into the same mailbox database as the user mailbox.
The code is as simple as this one
Set-ADServerSettings -ViewEntireForest:$true
$Mbx = Get-Mailbox user1@contoso.com
Enable-Mailbox -Archive -Identity $Mbx.Alias -ArchiveDatabase $Mbx.Database
Any other attribute (UPN or email address) can be used as Identity value. I used Alias because it's still a parameter you expect to be a unique one in your Exchange environment.
You can potentially extend it by importing your list of mailboxes from CSV file thus making this working for bulk archive mailboxes enabling.
Enjoy!
Just wanted to share with you a quick script on how to enable archive mailbox into the same mailbox database as the user mailbox.
The code is as simple as this one
Set-ADServerSettings -ViewEntireForest:$true
$Mbx = Get-Mailbox user1@contoso.com
Enable-Mailbox -Archive -Identity $Mbx.Alias -ArchiveDatabase $Mbx.Database
Any other attribute (UPN or email address) can be used as Identity value. I used Alias because it's still a parameter you expect to be a unique one in your Exchange environment.
You can potentially extend it by importing your list of mailboxes from CSV file thus making this working for bulk archive mailboxes enabling.
Enjoy!