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.
1 2 3 4 5 6 7 8 9 |
$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.
1 2 3 |
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.
1 |
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
Be First to Comment