This project is read-only.

Change proxy settings for Microsoft Office / OneNote / SkyDrive as well


While ProxyMonitor works well for web browsing, it seems that Microsoft Office applications require different settings. This is particularly evident when OneNote attempts to synchronise with SkyDrive: unless "Automatically detect settings" is checked, the operation will fail (regardless of other proxy settings). WORKAROUND: I made a script to automate this. Save the following text to enableautoproxy.vbs and put it in the ProxyMonitor folder. Add command="enableautoproxy.vbs" to the relevant configuration line in ProxyMonitor.exe.config, and it'll all work automatically. -------------begin enableautoproxy.vbs-------------' Script to enable automatic proxy detection' This flag is necessary for Microsoft OneNote to connect via a proxy server (regardless of other settings)' Script by clanger9 22/06/2012 ' The setting is contained in the following REG_BINARY valueconst HKEY_CURRENT_USER = &H80000001const HKEY_LOCAL_MACHINE = &H80000002strComputer = "."Set StdOut = WScript.StdOutSet oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\" & strComputer & "\root\default:StdRegProv")strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"strValueName = "DefaultConnectionSettings"oReg.GetBinaryValue HKEY_CURRENT_USER, strKeyPath, strValueName,strValue ' We need the 8th byte of the valuemyVal = strValue(8) ' Auto proxy is enabled by setting the 4th bit myVal= myVal Or 8 ' Write the new value backstrValue(8) = myValoReg.SetBinaryValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue-------------end enableautoproxy.vbs------------- Tech detail: Scripting this checkbox is rather odd in that depends on the state of the 4th bit of the 8th byte of the following registry location:HKCU:\"Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettingsThe above script ORs this bit so that it is set without changing any other settings.