Hi all,

I've searched around for the last 30mins, but could not find an answer on how to automate copying the currently logged on user's profile to the default user's profile.

We used to do this the dirty way by simply copying the folder contents of the user to the default user folder (and before that used to give 'Everyone' permission in HKCU), but I'd like to clean up our ways with XP. Has anyone got an idea where to start?

I know I can get to the right tab of the System Properties by using
Code:

Rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3



But that would probably mean using SendKeys next, and that's not really the way I would want to do it; it's difficult because you don't know how many accounts exist on the PC, and several things could go wrong. So I prefer a way not using SendKeys. Any help is appreciated!
_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.