How to Run Batch files in Exchange Management Shell

Hi Support,

I have to import more than 100 Pst files for  users in Exchange server.

i would like to run batch file from Exchange management Shell insted to run for ervery user.

thanks in advance,

Regards, Raju
KBRajuAsked:
Who is Participating?
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
you dont have to give the email address you just have to provide the Display name of the user.
0
 
fsouzabrasilCommented:
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
For Exporting PST's
msexchangeteam.com/archive/2007/04/13/437745.aspx
http://powershellcommunity.org/Forums/tabid/54/aff/3/aft/3736/afv/topic/Default.aspx
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.

 
Rajith EnchiparambilOffice 365 & Exchange ArchitectCommented:
If you have some sort of filter like they are in the same OU, mailbox DB, server etc, run the command

get-mailbox -database databasename | import-mailbox -pstfolderpath d:\psts
0
 
Rajith EnchiparambilOffice 365 & Exchange ArchitectCommented:
Did you try?
0
 
KBRajuAuthor Commented:
Hi Rajith,
when i am trying to  import the file i am getting below error

Export-Mailbox : Error was found for public2 (public2@kaakateeya.com) becaus
e: Error occurred in the step: Moving messages. Failed to copy messages to the
destination mailbox store with error:
MAPI or an unspecified service provider.ID no: 00000000-0000-00000000, error code: -1056749164
At line:1 char:15
+ Export-Mailbox  <<<< -Identity public2@kaakateeya.com -PSTFolderPath C:\PS
Tfiles

Regards, Raju
0
 
KBRajuAuthor Commented:
Thnaks  you very much to  Rajith and Rancy....  problem resolved

Regards, Raju.
0
 
KBRajuAuthor Commented:
Thanks to  Rancy and Rajith
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.