1
0
Windows 7 (64-bit) Disable Proxy via cmd - and put in effect?
I have found the correct registry key to change, and have code to change it.
reg add "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v ProxyEnable /t REG_DWORD /d 0
Found via
gpresults /h "%userprofile%\desktop\RSPO.html"
Running the 'reg add' does change the reg key, same key that changes, when I open IE (as admin) and turn off the LAN proxy settings manually.
However, when I do it manually, the desired effect happens - I no longer have proxy issues. But via my cmd script, the key changes but I still have proxy issues. When I open the LAN proxy settings in IE, it's still Enabled.
How do I change the reg key and put it into effect?
Tried changing a bunch of registry keys...
Current script...
reg add "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v ProxyEnable /t REG_DWORD /d 0
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v ProxyEnable /t REG_DWORD /d 0
reg add "HKCU\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v ProxyEnable /t REG_DWORD /d 0
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /f /v ProxyEnable /t REG_DWORD /d 0
2
Possible duplicate of In Windows 7, how to change proxy settings from command line?
– Butzke – 2015-10-16T14:30:02.640Tried running the script with administrative priviliges or some elevation command in front of it? Access rights to that registry key might prohibit changing it without administrative rights. You can check access rights by navigating to the key in regedit and rightklicking the entry, same way it works for files in windows explorer. – Johannes H. – 2014-02-03T21:10:08.303
I'm running cmd as admin. After running the script I get "The operation completed successfully". And the registry key has changed. – mrdnk – 2014-02-03T21:12:16.273
Can you edit your question to include the actual registry location you're changing? – Ƭᴇcʜιᴇ007 – 2014-02-03T21:27:43.600
There you go, sorry - had Stack Exchange logged in on different machine. – mrdnk – 2014-02-03T21:39:28.630
Not sure if you've noticed, but you have
REG_DWARD
instead ofREG_DWORD
Could that be it? – JSanchez – 2014-02-03T21:40:42.887Just a typo on Superuser, have actually pasted in the whole cmd now. – mrdnk – 2014-02-03T21:44:18.680
@mrdnk: Try to escape the backslashes in your script using the caret
^
symbol. Or use double backslashes. See if that solves your issue. – JSanchez – 2014-02-03T22:37:56.797For
– JSanchez – 2014-02-03T22:45:41.783reg
, it is double backslashes: http://ss64.com/nt/syntax-esc.htmlit's in quotes, and it is changing the value. – mrdnk – 2014-02-03T22:49:29.203
@mrdnk: You are running a 64-bit OS. Just realized that. http://ovidiupl.wordpress.com/2008/07/11/useful-wow64-file-system-trick/
– JSanchez – 2014-02-03T23:20:22.693Interesting read. Still no joy, but it gives me something to look into a bit deeper. – mrdnk – 2014-02-03T23:37:55.483
let us continue this discussion in chat
– JSanchez – 2014-02-03T23:41:31.627