EnableProxy
Configure and enable a proxy server
Function EnableProxy() { $ProxyServer = "ToBeDefined:Port" $AutoConfigURL = "ToBeDefined" Write-Host "Setting up Internet Options connection..." -foregroundcolor DarkGreen; Set-ItemProperty -Path HKCU:\"Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Value 1 Set-ItemProperty -Path HKCU:\"Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer -Value $ProxyServer New-ItemProperty -Path HKCU:\"Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name AutoConfigURL -Value $AutoConfigURL }