How to remotely push a registry update.

I want to push a registry entry on a remote PC, I know I can access the remote registry and then manually type the changes I want. But I want the changes to happen without accessing the remote registry. It might be a batch command or utility. Plz advice.
tsultanAsked:
Who is Participating?
 
B-M-CCommented:
I recognise that!

There's a missing quote - if there's a space in the key or value it needs to be in quotes:

 REG ADD "\\PC1\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Cached" /v "{A4DF5659-0801-4A60-9607-1C48695EFDA9} {000214E6-0000-0000-C000-000000000046} 0x401" /t REG_DWORD /d 1
0
 
B-M-CCommented:
Loads of ways really.

For example a VBscript (here telling IE not to use a proxy)

strComputer = "RemoteComputerName"
const HKEY_CURRENT_USER = &H80000001
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "software\microsoft\windows\currentversion\internet settings"
strValue = "ProxyEnable"
dwValue = 0
oReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValue,dwValue

See http://www.microsoft.com/technet/scriptcenter for some more examples and documentation

or

at a command prompt
REG ADD "\\REMOTEPC\HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\INTERNET SETTINGS" /v ProxyEnable /t REG_DWORD /d 0

type REG ADD /? for more on syntax

or

If in a domain, via group policy (Computer configuration/Windows Settings/Security Settings/Registry)
0
 
tsultanAuthor Commented:
I want to add this and it gives me too many command parameters.

REG ADD \\PC1\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Cached" /v "{A4DF5659-0801-4A60-9607-1C48695EFDA9} {000214E6-0000-0000-C000-000000000046} 0x401" /t REG_DWORD /d 1
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Danny ChildIT ManagerCommented:
or use regedit in a batch file:

regedit.exe /s \<path>\<filename.reg>

http://www.robvanderwoude.com/index.html

keys can be removed by using the - sign after the equals.
- see the Removing Registry Entries section of the site above.

psexec can be used to execute commands on remote servers too.  
http://www.sysinternals.com/Utilities/PsExec.html

hth,
Danny
0
 
Eagle6990Commented:
Any of the above methods will work.  Another option is to purchase a tool such as AutoAdministrator that will let you read and push registry changes as well as start/stop/query services, mass restarts or shutdowns, push ODBC and other features.

http://www.netikus.com/products_autoadministrator.html
0
 
tsultanAuthor Commented:
will let u know by tomorrow from my office it it works
0
 
tsultanAuthor Commented:
Thanks It works
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.