Exchange Mailbox Import Command

Hello,

Was hoping that someone could clarify on the Exchange Powershell command: New-MailboxImportRequest

If I was to use the following cmdlet sequence: New-MailboxImportRequest -Mailbox Username -FilePath \\filepath\user.pst

The AD user account would have to be created first, however would it require that a mailbox already be attached to the user? Or would that cmdlet create the mailbox for that account as it imports the PST into Exchange? I am also assuming that it will recreate the folder structure for their mailbox as it originally was, when the PST was exported?

Thanks!
victory2201Asked:
Who is Participating?
 
VB ITSConnect With a Mentor Specialist ConsultantCommented:
There must be a mailbox attached to the user account that you are importing to as mentioned above. This command will not work for an account that doesn't have a mailbox associated to the account.

I am also assuming that it will recreate the folder structure for their mailbox as it originally was, when the PST was exported?
That's correct. You can choose to import the contents of the PST file into a subfolder if you want using the -TargetRootFolder switch.

For example the below command will import the contents of the Bob - Recovered.pst file into a subfolder called Recovered in Bob's mailbox. This means if Bob wanted to access the contents of the Inbox folder that was imported from the PST file, he would need to go to Mailbox - Bob > Recovered > Inbox
New-MailboxImportRequest -Mailbox Bob -FilePath "\\SERVER\PSTImport\Bob - Recovered.pst" -TargetRootFolder "Recovered"

Open in new window

0
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
Th commandlett will NOT create new mailboxes. It needs to exist.
Once imported it will be exact layout of what was in the .PST file.
0
 
Mohammed KhawajaConnect With a Mentor Manager - Infrastructure:  Information TechnologyCommented:
The new in the name is part of the standard naming convention for powershell.  What it is referring to is a new import task.  As mentioned above, the mailbox must exist.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
BahloulConnect With a Mentor Commented:
Hey victory,

the following cmdlet

" New-MailboxImportRequest -FilePath \\Server\file.pst -Mailbox john "

is only import PST file into a mailbox which is already created and it will imported with the same structure as it originally was but it wont create  a mailbox for the user .

also the import  wont work directly before the required preparation please review the below topic :-

http://exchangeserverpro.com/exchange-2010-import-pst-files-mailboxes/

if you have many users i recommend to use PST capture :-

http://technet.microsoft.com/en-us/library/hh781036%28v=exchg.141%29.aspx

Bahloul.
0
 
victory2201Connect With a Mentor Author Commented:
Alot of replies to this request, thank you!

One last question, can this import function work against another users mailbox that the export did not originally come from?

Example:

Import John Doe's PST into Jane Smith's mailbox?


Thanks!
0
 
VB ITSSpecialist ConsultantCommented:
One last question, can this import function work against another users mailbox that the export did not originally come from?
Yep! The only problem may be when Jane tries to update one of John's calendar entries (for example) as she isn't the owner. Easiest way to fix this is to recreate the calendar entry.
0
 
BahloulCommented:
Of course , why because you are exactley importing just file not mailbox so you can import it to any mailbox .

Bahloul.
0
 
victory2201Author Commented:
Appreciate the assistance.
0
 
victory2201Author Commented:
Went ahead and awarded points to everyone, since all responses were helpful.

Thanks again for everyone's help!
0
 
VB ITSSpecialist ConsultantCommented:
Thanks victory2201. Happy to have helped.
0
 
BahloulCommented:
You are welcome 😊
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.