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<----------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top