Proxy: Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) K |
||
(7 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt) | |||
Zeile 3: | Zeile 3: | ||
+ | == Proxy (GET) == | ||
+ | '''#WinINet User:''' <source lang="powershell">Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | fl *Auto*, *Proxy* </source> | ||
+ | '''#WinINet Machine:''' <source lang="powershell">Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | fl *Auto*, *Proxy* </source> | ||
+ | '''#WinHTTP User:''' <source lang="powershell">((Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" -Name "WinHttpSettings") | ForEach{ [char]$_ }) -join "" -replace ([char]0) </source> | ||
+ | '''#WinHTTP Machine:''' <source lang="powershell">((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" -Name "WinHttpSettings") | ForEach{ [char]$_ }) -join "" -replace ([char]0) </source> | ||
+ | |||
+ | <span style="color:red">Don't forget the Proxy settings in context of '''NT Authority\System''', for example the WinINet:</span> | ||
+ | *Start PowerShell as System: '''<code>.\psexec64.exe -i -s powershell.exe</code>''' | ||
+ | *Type following and press Enter: '''<code>inetcpl.cpl</code>''' | ||
+ | *Change the Proxy settings: '''Connections -> LAN settings''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Proxy (Remove) | + | == Proxy (Remove) == |
− | '''WinHTTP:''' <source lang="powershell">netsh winhttp reset proxy <source> | + | '''WinHTTP:''' <source lang="powershell">netsh winhttp reset proxy </source> |
+ | |||
+ | == Import Proxy Settings from IE == | ||
+ | '''WinHTTP:''' <source lang="powershell">netsh winhttp import proxy source=ie</source> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
[[Kategorie:Windows]] | [[Kategorie:Windows]] |
Aktuelle Version vom 17. Dezember 2021, 08:31 Uhr
Inhaltsverzeichnis
[Verbergen]Set WinHTTP Proxy with a bypass list
netsh winhttp set proxy proxy-server="<your_proxy:port>" bypass-list="<*your_bypass.ch>"
Proxy (GET)
#WinINet User:Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | fl *Auto*, *Proxy*
Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | fl *Auto*, *Proxy*
((Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" -Name "WinHttpSettings") | ForEach{ [char]$_ }) -join "" -replace ([char]0)
((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" -Name "WinHttpSettings") | ForEach{ [char]$_ }) -join "" -replace ([char]0)
Don't forget the Proxy settings in context of NT Authority\System, for example the WinINet:
- Start PowerShell as System:
.\psexec64.exe -i -s powershell.exe
- Type following and press Enter:
inetcpl.cpl
- Change the Proxy settings: Connections -> LAN settings
Proxy (Remove)
WinHTTP:netsh winhttp reset proxy
Import Proxy Settings from IE
WinHTTP:netsh winhttp import proxy source=ie