Jump to content

Recommended Posts

Posted

I am after a script that removes the tick from proxy settings on shut down and puts it back when the laptop is on the domain again, I have a vbs created

and when its manually run it works fine but if I try and roll it out ffrom the server it does nothing.

Posted

Here is a script to turn the proxy off

 

On Error Resume Next
Set Shell = CreateObject( "WScript.Shell" )
Set WSHNetwork = CreateObject("WScript.Network")

Shell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", [b]0[/b], "REG_DWORD"

 

You can save this as a vbs file and run at logoff under User Configuration>Window Settings>Scripts (Logon/Logoff)

 

Change the 0 to 1 if you want to enable the proxy.

 

 

Hope this helps

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...