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.
Script to Modify Registry
Name: Mario Date: November 8, 2002 at 07:50:53 Pacific OS: Win2K CPU/Ram: 1.7Ghz, 512 MB
Comment:
I need to modify the registry of allot of computers here at work, but instead of manually modifying the registy on each one I would rather run a script. Could someone please give me a sample script on how to add an entry into the registy, and I believe I can go from there. I either want to create a bat file or something in Java. Here is what I want to do.
Add a REG_DWORD in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
Name: Jeff J Date: November 8, 2002 at 15:33:52 Pacific
Reply:
Adding/modifying by script is fairly easy (removal is slightly more difficult). You could run an .inf file, but a .reg file would be easier. Just put something like this in it:
Although invoking the resulting .reg file from the command line should do the trick (default action is to "merge" the contents into registry), you can also process it directly (or as command in .bat file). Just run:
regedit.exe MyRegFile.reg
Assuming no permission restrictions, should work fine.
Cheers
0
Response Number 2
Name: CyberSlug Date: November 8, 2002 at 23:00:46 Pacific
Summary: 1. I am using group policy to add registry entries to prevent the auto update of Sun Java Runtime Environment. I need to add registry entries at both startup and login. 2. Since I have pretty limited ...
Summary: Hi, I have a bunch of ipaddresses that i need to know the DNS names of. i have a script and it works great. the only problem is that i have to manually enter the IP. Could someone help to modify this...
Summary: Hi Guy and Gals, I hope one of you smarties... out there can help me with this. I am working on a project to automate the installation of a task that I do everytime I install SBS at a client site, I ...