Yedekleme (Export)
$BackupPath ="\\localhost\c$\Data\Backup" foreach($mailbox in Get-MailBox -filter {Name -notlike "Administrator" -AND Name -notlike "DiscoverySearchMailbox*"}) { New-MailboxExportRequest -Mailbox $mailbox.Identity -FilePath "$($BackupPath)\$($mailbox.UserPrincipalName).pst" -IncludeFolders "#Inbox#/*","#SentItems#","#DeletedItems#","#Calendar#","#Contacts#","#Drafts#","#Tasks#","#Notes#" }
Geri Yükleme (Import)
$RestorePath ="\\localhost\c$\Data\Backup" Get-ChildItem *.pst -Path $RestorePath | Select Name, BaseName | ForEach { New-MailboxImportRequest -MailBox $_.BaseName -FilePath "$RestorePath\$($_.Name)" -Confirm:$false }