modify the default user hive through command line or script

A long story short, we have over 200 windows xp pro sp3 computers, which we're needing to modify the default user hive in the registry. Is there such way to do so, so I can deploy it to all workstations through our system manager. This could be a script, batch file, or command line. I just have 3-6 reg key values that need changed, and I'm unsure on how to accomplish this. Any recommendation would be appreciated....
khptechAsked:
Who is Participating?
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.

johnb6767Commented:
Post the reg keys, and I will help....

Reg Load hklm\DefaultUser "C:\documents and settings\Default User\ntuser.dat"
reg add "HKLM\DefaultUser\Software\Key" /v Value /t reg_dword /d 0x1 /f
reg unload hklm\DefaultUser

Just need to watch your syntax on teh commands and make sure you target the LOADED hive, not the HKLM/HKCU hives....
0
khptechAuthor Commented:
Once the default user hive is loaded, these are the keys:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
With values of:
"Desktop"="C:\\%USERPROFILE%\\Desktop"
"Personal"="C:\\%USERPROFILE%\\My Documents"
"Favorites"="C:\\%USERPROFILE%\\Favorites"
AND:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
With values of:
"Desktop"="C:\\%USERPROFILE%\\Desktop"
"Personal"="C:\\%USERPROFILE\\My Documents"
"Favorites"="C:\\%USERPROFILE%\\Favorites"

We have the registry hacked in some of our machines (very bad idea I might add), and need to revert them back to default. We can't deploy MSI's for many Office or Adobe products, because they look at these values. Your help is highly appreciated!!!
0
johnb6767Commented:
Yea, the installers hose on the invalid locations.......

Please try this on a test machine.....

reg load HKLM\TEMP "C:\Documents and Settings\Default User\NTUSER.DAT"
reg add "HKLM\TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Desktop /d "%USERPROFILE%\Desktop" /f
reg add "HKLM\TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal /d "%USERPROFILE%\My Documents" /f
reg add "HKLM\TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Favorites /d "%USERPROFILE%\Favorites" /f
reg add "HKLM\TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /d "%USERPROFILE%\Desktop" /f
reg add "HKLM\TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /d "%USERPROFILE%\My Documents" /f
reg add "HKLM\TEMP\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Favorites /d "%USERPROFILE%\Favorites" /f
reg unload HKLM\Temp

Open in new window

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

johnb6767Commented:
Are these local users admins, or restricted users?

Might need to do a search and replace in your script for HKLM\Temp to HKCU\Temp....
0

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
khptechAuthor Commented:
Definetely Users. That will work perfect. We can "Run as Administrator" with our Desktop management system. Thanks a million.
0
johnb6767Commented:
Anytime!
0
khptechAuthor Commented:
For the User Shell folders of the NTUser.dat's file, it resolves those 3 values to C:\Documents and Settings\my user name\Desktop, while the rest of the keys that I have not touched stay with the desired %USERPROFILE%\. For Shell Folders, it works fine. This is strange. Any ideas?
0
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
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.