Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

If I edit Proxy Settings through the Control Panel, the settings are stored in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable and ...\ProxyServer. These settings are of course not used when running as a service under LOCAL SYSTEM.

So I tried setting ProxyEnable and ProxyServer under HKEY_USERS\S-1-5-18\... (as well as HKEY_USERS\.DEFAULT\... and all the other users on the system), but that does not work.

How do I set the proxy settings for the LOCAL SYSTEM user?

share|improve this question

4 Answers 4

up vote 8 down vote accepted

Figured it out myself:

It is actually the value in Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings that is used.

Since that is not easily modified, you can modify the proxy settings for a user, export the registry key, modify the path in the exported file to HKEY_USERS\S-1-5-18 and reimport it.

share|improve this answer
    
This solved my problem, many thanks! I ended up writing a Java class to manipulate the DefaultConnectionSettings hex string, as I needed to set the proxy programmatically. –  Andrew Swan Nov 29 '10 at 4:30

You might want to try using ProxyCFG.EXE, which sets the proxy for any WinHTTP calls.

share|improve this answer
    
What versions of Windows have ProxyCFG.EXE? It's not in Windows 7, for example. Also, does IE use WinHTTP? –  Andrew Swan Nov 26 '10 at 3:01
    
In Windows 7/Win 2008 R2 NetSH.exe is used for all proxy config stuff: technet.microsoft.com/en-us/library/cc731131(WS.10).aspx –  Christopher_G_Lewis Nov 29 '10 at 3:49

Another way, albeit much messier, is to use psexec to open a command prompt running as LOCAL SYSTEM, then from that open iexplore.exe, modify the settings appropriately.

share|improve this answer

Copy IE proxy settings to WinHttp:

  • Run cmd as administrator:
    • netsh
    • winhttp
    • show proxy
    • import proxy source=ie
    • show proxy
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.