Posted On May 1, 2019

Group Policy: WinHTTP Settings

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Group Policy: WinHTTP Settings
Overview

There are several registry keys that needed configuration within a Group Policy to enable WinHTTP on all Windows machines being joined to the domain. This is the the first item:

Part 1

Create a WinHTTP_Settings GP > navigate through Computer Configuration > Preferences > Windows Settings > right-click Registry > New > Registry Item

New Registry Properties:
Action = Update
Hive = HKEY_LOCAL_MACHINE
Key Path = SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections
Value name = WinHttpSettings
Value type = REG_BINARY
Value data = 1800000000000000010000000000000000000000 (Direct Access - No Proxy)

Note: run this script to obtain Value data on a Windows test machine

# Dynamic variables
$proxy="http://proxy:80";
$exclusionList="localhost;*.kimconnect.com"

# Set proxy registry
$asciiValue = "(   $proxy $exclusionList"
$binaryValue = [system.Text.Encoding]::Default.GetBytes($asciiValue) | %{[System.Convert]::ToString($_) }
$winHTTPHive = "Registry::HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
$winHTTPKey = "WinHttpSettings"
Set-ItemProperty -Path $winHTTPHive -Name $winHTTPKey -Value $binaryValue

Run Regedit > navigate to SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections > double-click on WinHttpSettings to obtain the binary data for copying purposes

Part 2

To be continued…

Maybe: https://learn.microsoft.com/en-us/defender-endpoint/configure-proxy-internet

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Windows Time Service Configuration

Update 12/27/2019: use this script to set Windows time automatically    It has been a…

How To Reset Administrator Password – HP iLO Versions 2-4

Prelude: this instruction only works on HP iLO versions 2 to 4; hence, the title…

Office 365 Rules

Block Executables: https://support.office.com/en-us/article/Blocked-attachments-in-Outlook-434752e1-02d3-4e90-9124-8b81e49a8519?CorrelationId=66e06c24-0d68-47c1-a503-5b4e30bc1c8a&ui=en-US&rs=en-US&ad=US&ocmsassetID=HA102749484#_Attachment_file_types Reject large files:  Sender is located Outside the organization The message size is…