Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing registry keys from multiple windows XP workstations

Status
Not open for further replies.

dooby12

Technical User
Jun 18, 2003
67
GB
I need to remove 2 registry keys from multiple windows XP computers on my network, approx 150. Is there a quick was of doing this?
thanks
 
You could use a login script.

Basically, make the changes on one machine. Only export the sections of the registry that were changed. Don't export the whole registry because that would run the risk of fowling up other machines with differnet hardware and software installed.

use this vbscript as a login script and it will import the exported sections on each machine. This is what I use to make global changes to all of my machines. Just change the paths to the reg exports. This is import 2 exports but can be modified for more than 2. If you have any questions, just ask.

Hope this helps

Justin


strCommand = "regedit /s \\server\shared\file.reg"
strCommand1 = "regedit /s \\server\shared\file1.reg"
set objWshShell = WScript.CreateObject("WScript.Shell")
intRC = objWshShell.Run(strCommand, 0, TRUE)
if intRC <> 0 then
WScript.Echo "Error importing removestartscan.reg into the registry"
else

end if


intRC1 = objWshShell.Run(strCommand1, 0, TRUE)
if intRC <> 0 then
WScript.Echo "Error importing preventstartscan.reg into the registry"
else

end if
 
Thanks for that Justin, Was a great help.
Would you have something similar where i can run an .exe on all my computers on the network.

I have just installed Landesk on the network and need to run this inventory scan which is a small .exe file on all pc's.
 
just rememberd with regards to the vbscript. if i use it as a login script i will need to still have it run from each pc. is there any way i can automate a remote connect and push the changes to the pc.
 
Hi,

I think the login script is the only way to do this. Great script by the dooby12!!

You can also do this by adding a line

Regedit <REG_PATH> /D

In the login script, this will also delete the reg keys you need to.

But im not sure of anyway to push a change to mutiple pcs. The only thing that springs to mind is the remote registy. But that wont help as you will need to connect to each pc.

Dont the pcs run a login script when they logon, after leaving it in the login script for about a fortnight, it should have hit all pcs.



If aint broken, dont try n fix it!!!!!
 
I'm not quite sure what your getting at with your question? I'm assuming your talking about the script that I have you. All you have to do is copy the reg exports to a network share and change the path to reflect that path of the network share. You don't have to copy the reg exports to each machine. When each machine logs in

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top