Created
April 23, 2018 05:44
-
-
Save kkbruce/f96b3eacfee12ca16121a2298b0a34ee to your computer and use it in GitHub Desktop.
Get-Set-Remove IE Proxy Settings by PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get IE Proxy Settings | |
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | |
# Set IE Proxy Settings | |
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 [IPorDomain:Port] | |
# Remove IE Proxy Setings | |
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 0 | |
Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer |
I know that "HKCU:" is a global setting.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi bruce,
Can you please share the Powershell command for Get IE Proxy Settings for all the users on the server?
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
Above mentioned command is user-specific only
I really appreciate any help you can provide.