Editing the Registry on Multiple Computers
To make Registry changes to several computers across the network, you can
use the System Policy Editor (SPE) to create policies that download to each
computer as it logs on to the network. (For information on SPE, see Related
Articles in Windows NT Magazine.) You can also use Regedit's import
feature as a low-tech alternative to the SPE. For example, if you want to change
a specific Registry setting on multiple computers, you can create a Registry
data file with the new setting and import it on each computer you want to
modify. In Clayton Johnson's, "Installing Applications Across the Network,"
April 1997, the author suggests that you use a share that anybody on the network
can connect to and install optional software from. This approach requires that
you visit each workstation and add a new value (AppInstallPath) to the Registry
before the user can take advantage of the share. You can create a .reg file with
the new value and place it on the share. The first time a workstation connects
to the share, the user imports the Registry file, which enables the network
installation feature on the user's computer.
For the example in Clayton Johnson's article, you need to add the
AppInstallPath value to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion key. Following the
instructions in the article, edit the Registry, add the value, and give it the
path of the Apps.inf file. Then use Regedit to export the Registry key to a
file. The file will look similar to the following:
Using a text editor, remove everything from the file except REGEDIT4, the
first key, and the AppInstallPath items. This step will leave you with just the
following:
The file now contains only the new entry, so NT won't overwrite any existing
entries when you import the file. The [HKEY...] line simply identifies the right
location for the new entry.
Name this file something intuitive, such as Appinst.reg, and place it on
the share you are using for software distribution. Create a batch file that runs
Regedit on the .reg file. For example, Appinst.bat could contain regedit/s
appinst.reg. Now when users want to enable their workstation for the network
software installation, all they have to do is go to the network share and run
Appinst. This approach is a vast improvement over visiting each workstation and
editing the Registry by hand.
Registry Editing Over the Web
You can also use a Web browser to edit the Registry, but this practice can
be risky. If someone maliciously or accidentally causes your Web browser to
import a Registry file, that user can corrupt or compromise your system. Listing
1, page 178, shows HTML that uses links to the Registry scripts I created
earlier.
After I created the HTML, I selected the Programs tab from Options under
the View menu in Internet Explorer (IE) to designate Regedit as a viewer for
.reg files. I set the action to be Open with the application command line set to
C:\Winnt\Regedit.exe /s "%1". When you view the HTML file and
double-click the link, the Web server downloads the .reg file to the Web
browser, which runs Regedit on the file (%1). Screen 1 shows the HTLM page in
IE. Obviously, this example is not the most sophisticated HTML front end to the
Registry, but it demonstrates some powerful features.
Never leave your Web browser configured this way when you're browsing the
Internet, but this method has possibilities for intranet use. For example, you
can create a Web page that lets your remote NT users make Registry edits on
their machines simply by going to your Web site, reading the instructions, and
clicking a few buttons.
If you are administering NT computers in a complex production environment,
you'll want to develop some tools for making Registry changes in a safe and
efficient manner. You have several choices mining the NT Registry.
You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor?
Register now
An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...
Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...
Free CDs Offer Fundamental Content for IT Pros Are you up to speed on the latest technologies and solutions? Don't miss out on your chance to get up to speed quickly on fundamental, in-depth information on some of the hottest topics in our library of content.
Let Your Users Reset Their Own Passwords: Free Download Try a 30 day free trial of Desktop Authority Password Self-Service – it provides an easy-to-use, robust system for allowing users to reset their own forgotten passwords or locked accounts.
Get Windows IT Pro & Mark Minasi’s Favorite Power Tools Guide Order Windows IT Pro now and get "More of Mark Minasi's Favorite Power Tools"--a in-depth guide to the most useful Windows commands --FREE with your paid order! Subscribe today, and save 58% off the cover price!
Deep Dive into VMware vSphere, eLearning Series Join John Savill to explore the major functionality capabilities of the vSphere virtualization platform, including identification of the changes from ESX 3.5.