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…
Leave a Comment