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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fsouzabrasilCommented:
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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
Rajith EnchiparambilOffice 365 & Exchange ArchitectCommented:
Did you try?
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
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KBRajuAuthor Commented:
Thnaks  you very much to  Rajith and Rancy....  problem resolved

Regards, Raju.
KBRajuAuthor Commented:
Thanks to  Rancy and Rajith
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.