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
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top