Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to build PowerShell script which for Windows 10/11 domain computer, at user login, makes the following actions in "proxy" section of "Network & Internet" menu to autodiscovery wpad.dat file:
Can you suggest what commands are need to create it?
Hello CorsaroDelVento
Here's a script that should accomplish what you're looking for:
Function Set-ProxySettings {
# Set "Automatically detect settings"
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Value 0
# Disable "Use setup script"
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyAutoConfigURL -Value ""
# Disable "Use a proxy server"
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer -Value ""
}
Set-ProxySettings