I'm working on a script to turn on/off the "Auto Configuration Script" in IE. So far this is what I have: $pac_url = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","AutoConfigURL") Switch $pac_url Case "http://proxy.company.xyz/auto.pac" MsgBox (0, "Proxy State", "Proxy is ON. URL = "&$pac_url, 2) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","AutoConfigURL", "REG_SZ", "") If @error <> 0 T