Updating NT 4 Registry

dirtboy

Diamond Member
Oct 9, 1999
6,745
1
81
I've got a few registry keys I'm trying to add to new NT 4 workstations as I set them up. Normally I manually type them in, which is extermely tedious. I finally figured out that I could make a registry file so I could automate things a bit. Unfortunately it's not working the way I think it should and I need some help.

Here's the file:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"CLRTEMP"="C:\\Policies\clrtemp.cmd"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Update]
"UpdateMode"="2"
"NetworkPath"="C:\Policies\ntconfig.pol"

With the exception of the "UpdateMode" line, the rest are new entries. By default, the updatemode is 1 and after executing this file, it is changed to 2. What isn't working is that it will not add the two new lines.

What am I doing wrong?
 

dirtboy

Diamond Member
Oct 9, 1999
6,745
1
81
I figured it out...sort of. It needs to be done from an .inf file, which I couldn't figure out myself. I did find a sweet free utility for creating .inf files and it worked perfectly for updating and adding registry keys.