This article assumes you have already downloaded the necessary scripts from part I of this article. It also assumes that the machine name and paths are equivalent to those mentioned in part I.
The RestoreExchange.cmd file, which is used to restore mailboxes, expects the existence of PST files in your C:\ExchangePST folder. This script is designed to restore every PST file that is present in C:\ExchangePST folder. Therefore, in order to selectively restore one or more PST file(s), remove every other file except for the ones that you wish to restore from this folder. Then run RestoreExchange.cmd.
You must have completed Step 1, 2 and 3, which were mentioned in part I of this article. The script will result in errors if these conditions are not met.
PST files are created using the value for Alias in Active Directory. For example, if a user John Doe has an alias JohnD, the PST file will be JohnD.pst. It is important that John has the same alias when restoring PST files. If a PST file is NOT found in the C:\ExchangePST folder, the RestoreExchange.cmd script will display a WARNING message on the console window.
You must create users in AD and create mailboxes for users before importing their emails. Once the mailboxes have been recreated, follow the same steps as mentioned above.