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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 for some more examples and documentation


at a command prompt

type REG ADD /? for more on syntax


If in a domain, via group policy (Computer configuration/Windows Settings/Security Settings/Registry)
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
Danny ChildIT ManagerCommented:
or use regedit in a batch file:

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

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.

Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
tsultanAuthor Commented:
will let u know by tomorrow from my office it it works
tsultanAuthor Commented:
Thanks It works
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.