March 7
2021
Export all Exchange mailboxes
get-mailbox | select -expand alias > alias.txt
$content = get-content C:\users\user\desktop\alias.txt
foreach ($user in $content) {
New-MailboxExportRequest -Mailbox $user -FilePath \\fileserver\export\$user.pst }