#157474 - 2006-02-20 02:23 PM
Automatically copy the current user's profile to Default User profile
|
Jeroen
Starting to like KiXtart
Registered: 2001-08-16
Posts: 180
Loc: Netherlands
|
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.
|
Top
|
|
|
|
#157481 - 2006-02-21 01:47 AM
Re: Automatically copy the current user's profile to Default User profile
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11624
Loc: CA
|
Quote:
and to think ADMT makes all that obsolete.
Yeah, too bad it doesn't clear out the %TEMP% and IE Cache before doing that copy. On a system that has a 3GB IE Cache and about 1GB of %temp% sure can take a LONG time to copy the profile and may even error out if it runs into any long file name issues due to crap in the IE Cache.
A good reason to limit IE Cache on a user desktop to a very small amount.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 128 anonymous users online.
|
|
|