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....
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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....
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:
"Personal"="C:\\%USERPROFILE%\\My Documents"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
With values of:
"Personal"="C:\\%USERPROFILE\\My Documents"

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!!!
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

Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

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....

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.
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?
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.