We help IT Professionals succeed at work.
Get Started

Copy multiple outlook pst files to server

maharlika asked
Last Modified: 2012-05-12
We have outlook email (no exchange server) and are moving to google apps.  I have to copy all users' pst files over to a server then upload to google. The google outlook migration tool has to run as local admin, so I can't use that on 100+ users, most of whom are not admin status.  So I'd like a script that copies *.pst from their profile when they log on to the windows domain.  We have both XP and Win7 users. (1) Is there a script I can run that will copy these files from their windows profile to a folder on the server that has the same user name as their profile?
(2) I did a manual test to copy the pst files using dos:

c:\copy C:\Documents and Settings\jdoe\Local Settings\Application Data\Microsoft\Outlook\*.pst \\acmh01\public\tpsmail

It said "The system cannot find the file specified." but when I changed the root directory to  C:\Documents and Settings\jdoe\Local Settings\Application Data\Microsoft\Outlook\, this command worked fine.  Why can't it do it from the default directory?
Watch Question
Microsoft Outlook MVP
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE