Solved

I need to change a value at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable "value"

Posted on 2009-07-10
3
501 Views
Last Modified: 2013-12-04
I have a VBScript to turn off the proxy and it works fine, but I need to turn it off on multiple machines...........any help would be appreciated.

This is a copy of my script
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
'rem WshShell.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", "10.80.2.5:3128", "REG_SZ"
WshShell.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"
'rem WshShell.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyHttp1.1", 1, "REG_DWORD"
0
Comment
Question by:gevansmdes
3 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 500 total points
ID: 24832339
You should use the
    WshRemote Object
    http://msdn.microsoft.com/en-us/library/x9t3ze5y(VS.85).aspx
You'll save that script of your into a file, then use another script to run it on multiple computers.
0
 
LVL 12

Expert Comment

by:chandru_sol
ID: 24833277
Hi,

HKCU - Is user registry and the registry setting you have is for the user based and not machine based?

You can use a login script to do this

Do you already use login script if so you can create a group and then put all the users whom you want the proxy removed?

Let me know if you want the login script modified?
0
 

Author Closing Comment

by:gevansmdes
ID: 31602238
thanks
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question