| | |

Bulk Enable Exchange Online Archiving

Bulk Enable Exchange Online Archiving

This below script simply just enables the Online Archiving Mailbox for users in Exchange Online.

The script needs to be run from the On-prem Exchange environment.
$list = Import-Csv "C:\Scripts\EnableArchive\enablearchive.csv"

foreach($entry in $list) {

$User = $entry.User

Get-RemoteMailbox -id $User |Enable-RemoteMailbox -Archive

}
Csv Sample. Simply has the users Alias in.
User
Alf.Witham
Ali.Winfield

To execute the Script run it from the Exchange Management Shell, the output will look as follows.

To view if an Online archive has been activated in the Mailbox, run the following cmdlets.

Get-Mailbox |Where-Object {$_.ArchiveStatus -eq "Active"}

As you can the cmdlet will give you an output of all users who has an active archive mailbox.

This is how you can quickly enable a few users with Online Archiving and verify afterwards if it has been enabled.

#ThatLazyAdmin

@ShaunHardneck

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *