Script to modify registry

  • Thread starter Thread starter Natla
  • Start date Start date
N

Natla

How can I set up a script make the below changes to my
registry?
My Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002
\Services\Tcpip\Parameters

The string value 'SearchList' gets cleared about 2 times
a week because to the GPO that my name is in. I would
like to have a script that I could run to automatically
add in 'ab.bc.cd.com' as the 'value data'.

Thanks for the help!

Natla
 
Natla said:
How can I set up a script make the below changes to my
registry?
My Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002
\Services\Tcpip\Parameters

The string value 'SearchList' gets cleared about 2 times
a week because to the GPO that my name is in. I would
like to have a script that I could run to automatically
add in 'ab.bc.cd.com' as the 'value data'.
Hi

Not that you never should use ControlSet00x to address the
registry, always use CurrentControlSet instead.

You could just put the following into a .reg file and import
it regularly:

--------------------8<----------------------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"SearchList"="ab.bc.cd.com"


--------------------8<----------------------
 
Back
Top