What is a PST file?
Taken from Wikipedia: a Personal Storage Table (.pst) is a file used to store local copies of messages, calendar events, and other items within Microsoft software such as Microsoft Exchange Client, Windows Messaging, and Microsoft Outlook.
If an employee leaves the company and you want to export the mailbox to a PST file and store it as a backup, it is very easy to do this in Exchange 2007.
Pre-requisites:
- Remote computer that has Outlook 2007 installed. This is a must. Don’t install Outlook on the Exchange server itself
- Exchange Management Shell installed from Exchange 2007 media
- Windows Power Shell installed
Login to the remote computer with your domain credentials. Note that the domain credentials that you use to login must have FULLACCESS permission on the mailbox you are exporting. If not, this will fail.
If you want to give yourself FullAccess permission on a mailbox, you can run the following script from either PowerGUI or Exchange Management Shell. Change the script according to your requirements.
Add-MailboxPermission -Identity “John Crawford” -User “ContosoAdministrator” -AccessRights FullAccess
After the permission has been added, open up the Exchange Management Shell (EWS) on the remote computer and run this script.
Export-Mailbox -Identity [email protected] -PSTFolderPath C:\PSTBackupJohn_Crawford.pst
You will get a confirmation prompt:
After pressing Y, the exporting starts...
You can remove the FullAccess permission that you added earlier as follows:
Remove-MailboxPermission -Identity “John Crawford” -User “ContosoAdministrator” -AccessRightsFullAccess
You can also set filters and actions to be performed while exporting. Some examples as follows:
Get-User john | Export-Mailbox -SenderKeywords [email protected] -DeleteContent
Get-User john | Export-Mailbox -TargetMailbox sujeeth -TargetFolder reports -SubjectKeywords “laser eye” -DeleteContent
Get-User john | Export-Mailbox -PSTFolderPath C:PST_Backupjohn_crawford.pst -SubjectKeywords “laser eye” -DeleteContent
Get-User john | Export-Mailbox -TargetMailbox sujeeth -TargetFolder MessageCleanup [email protected]
SOURCE | LINK | LANGUAGE | ENGLISH |