Posted in
Exchange Server,
Windows Powershell |
No Comment | 2,242 views | 27/11/2014 02:32
These are just notes for me to remember later :)
First you need to assign Mailbox Import / Export role to your user.
New-ManagementRoleAssignment –Role “Mailbox Import Export” –User "Administrator" |
New-ManagementRoleAssignment –Role “Mailbox Import Export” –User "Administrator"
Now you should open a new PowerShell window to apply changes.
You can export your mailbox with following command:
New-MailboxExportRequest -Mailbox "yusuf" -FilePath "\\localhost\Archive\yusufozturk.pst" |
New-MailboxExportRequest -Mailbox "yusuf" -FilePath "\\localhost\Archive\yusufozturk.pst"
You can import your pst file with following command:
New-MailboxImportRequest -Mailbox yusuf -FilePath "\\localhost\Archive\yusufozturk.pst" |
New-MailboxImportRequest -Mailbox yusuf -FilePath "\\localhost\Archive\yusufozturk.pst"
You should check import / export activity with following commands:
Get-MailboxExportRequest
Get-MailboxImportRequest |
Get-MailboxExportRequest
Get-MailboxImportRequest
Also you can check import status with following command:
Get-MailboxImportRequest | Get-MailboxImportRequestStatistics |
Get-MailboxImportRequest | Get-MailboxImportRequestStatistics
That’s it! :)