goezler

EX__Export Mailbox to a PST File

Jan 21st, 2021 (edited)
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #Exchange Management Shell Commands
  2. #Replace MailboxName with the mailbox wou want to export
  3.  
  4. New-MailboxExportRequest -Mailbox "MailboxName" -filePath \\SERVERNAME\SHARE\Outlook.pst
  5.  
  6. #Request status of export and wait utill „completed“ appears.
  7. Get-MailboxExportRequest
  8.  
  9. # Delete finished export jobs:
  10. Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest
  11. # Press "A" Key
Add Comment
Please, Sign In to add comment