Figure 1: Export-Mailbox error
Since 32-bit Exchange 2007 servers are not supported in a production environment, it means that you must install the Exchange 2007 System Management Tools on a 32-bit XP SP2 / Vista client or Windows 2003/2008 server in My AD forest. You might be wondering how to install 32-bit based Exchange 2007 server in a production field, when only 64 bit versions are supported. Indeed 32bit version is supported in production but only for management purposes such as domain extension / AD schema and for managing users and server objects . We have a quote Here is an English-language document about Exchange 2007, which discusses the use of the 32-bit Exchange 2007 Management Tools for Exchange 2007 administrators.
That means preparing a client or server in your environment by first installing the Exchange 2007 System Management tools, then Outlook 2003 SP2 or later. Once you've done that, you can log in to a corresponding client or server and open Exchange Management Shell, type in the command to export a mailbox to a PST file as follows:
Export-Mailbox –Identity 'alias' –PSTFolderPath
When you press Enter, you will be prompted to confirm that you are willing to perform this action as shown in Figure 2.
Figure 2: Message confirming whether you want to export the corresponding mailbox to a PST file.
When you click ' Y ', the corresponding mailbox will be opened and the Export-Mailbox cmdlet will start transferring content to a specific PST file (Figure 3).
Figure 3: Export Mailbox Data to PST file
Note :
Exporting data from the mailbox to a PST file will not delete the content in the source mailbox. If you want to delete its content, you must use -DeleteContent or -DeleteAssociatedMessages depending on whether you want to delete all mailbox data or just related notifications.
Depending on the server as well as the size and number of items in the particular mailbox, the export may take up to several minutes or even longer. When the export is complete, you can do what you want to do with it. Perhaps you will perform a cross-forest transition for a corresponding small organization and do not want to establish a trust between the AD forests. Or simply, you just want to save the data to use later or just delete the mailbox.
Note :
The user account you have logged on on must have access to the mailboxes that are exported to PST files.
We now know how to export a mailbox to a PST file, but we have to do this with a few thousand users. So how do you export mailbox data to PST files for all users? That's an interesting question, isn't it, solving this problem can be through many different methods. To export data for all mailboxes in a mailbox database, you must link the results of the Get-Mailbox to the Export-Mailbox cmdlet. To do so, you need to enter the following command:
Get-Mailbox –Database
If you prefer to export mailbox data for user mailboxes in an organization (OU) in your Active Directory forest, then you need to enter:
Get-Mailbox -OrganizationalUnit
What contents of the Mailbox will be exported to PST file?
By default, the following data will be exported to a PST file unless we use another method:
If you want a folder to be exported, you can do it using the -IncludeFolders and –ExcludeFolders parameters. You can also use the command to export only all messages between two dates or messages with certain words, etc. However, these options are beyond the scope of the article, so we show you the link to refer here.
Import PST file to Exchange 2007 Mailbox
You can also import data from PST files to Exchange Server 2007 mailboxes. This problem is done using the Import-Mailbox cmdlet. Back to the same principles that apply here, you must run the Import-Mailbox cmdlet on the 32-bit client or the Exchange 2007 Management tools server and Outlook 2003 SP2 or later version to be installed.
To import PST file named hew.pst at C: PSTs to the mailbox of Exchange 2007 user with hew alias, run the following command (Figure 4):
Import-Mailbox -Identity hew -PSTFolderPath: c: PSTshew.pst
Figure 4: Confirm that you want to import the PST file to the Exchange 2007 Mailbox
After confirming that you want to do that, the messages will be transferred to a specific user mailbox (Figure 5).
Figure 5: Importing data from a PST file to an Exchange 2007 Mailbox
Note :
You cannot use the Import-Mailbox cmdlet to import data from PST files to legacy mailboxes. In this solution, you must use the ExMerge tool. Also, you cannot import data to a mailbox in Recovery Storage Group (RSG).
To import PST files for all users, you must specify the file directory to include PST files. For example, if you want to import PST files to all user mailboxes stored in certain mailbox databases, type:
Get-Mailbox –Database
Do the same for OU users in your Active Directory Forest, use:
Get-Mailbox -OrganizationalUnit
Conclude
This is really a good method for exporting as well as importing mailbox and PST file data using Export-Mailbox and Import-Mailbox cmdlet, but it is still my disadvantages, as I have to install Outlook 2003 SP2 or later on the corresponding server as well as using a 32bit server to perform this task, the steps are still cumbersome when you do this with the ExMerge tool.