Computing.Net > Forums > Windows XP > Registry changes via script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Registry changes via script

Reply to Message Icon

Name: noband
Date: February 13, 2009 at 07:51:56 Pacific
OS: Windows XP
CPU/Ram: 2.8
Product: 1gb / Ibm
Subcategory: Configurations
Comment:

Sorry - This may not be possible, but it's worth a shot. I have an application that gets it's configuration info from the users registry hive. I need to make a change to the hive, but multiple users access each machine. Is there a way to make the change as a startup script when each user logs in? It would need to modify the user's \\hkey_user\SID\software\application\string.
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: kptech
Date: February 13, 2009 at 11:20:03 Pacific
Reply:

Noband,

Using regedit, you can manually add the registry entry on a single system and then export that key to a .reg file. For purposes of my example, I'll call it changes.reg. If the key has other entries, simply edit them out of the changes.reg file leaving only the one you added.

Now you have a file containing the change you want.

Add the following line to your script:

regedit /s d:\path\changes.reg

Where d:\path points to the drive and folder containing the changes.reg file if it's located someplace other than the current folder.

The /s parameter suppresses the regedit prompt you would otherwise see asking if you're sure you want to make the change to the registry. You can experiment with the command from the command line with and without the /s to see what I mean.

As always, be careful editing the registry. Change or delete the wrong key and you could end up with a vegetable instead of a working system.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Registry changes via script

Registry changes reset on reboot www.computing.net/answers/windows-xp/registry-changes-reset-on-reboot/108792.html

Track registry changes www.computing.net/answers/windows-xp/track-registry-changes/147102.html

Remotely Change XP Account Type www.computing.net/answers/windows-xp/remotely-change-xp-account-type/172032.html