반응형
$AllMailbox = get-mailbox -database "database name" | where-object {($_.PrimarySmtpAddress -notlike $null)}
$AllMailbox|%{New-MailboxExportRequest -Mailbox ($_.Name) -FilePath \\exchmbx33\pst_test\$($_.PrimarySmtpAddress).pst
반응형