Discussion Locked

copy a user profile via command line

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have heard Microsoft say that you can do anything through the command line that you can through the gui. I know how to copy a user profile through the gui (through the system control panel). Is there a way to do this through the command line?

3 replies

by syscokid

Since a profile is simply a set of folders and subfolders, you can use xcopy to copy them wherever you want.

For example,

xcopy \\servername\profiles$\joe c:\winnt\profiles\joe /s /e /i

will create the folder joe on your workstation and copy the profile joe to it.

by joshhansen

This won't work because if the files are in use, they won't copy. If you use the profile copy method in the My Computer properties, it always works, even if the profile is in use.

This discussion is closed to new replies.