Private/Invoke-IEReset.ps1

function Invoke-IEReset {
    [CmdletBinding()]
    param ()

        # Set the "Automatically Detect Settings" to enabled
        Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' -Name 'DefaultConnectionSettings' -Value ([byte[]](Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' -Name 'DefaultConnectionSettings').DefaultConnectionSettings[0..7] + 9 + ([byte[]](Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' -Name 'DefaultConnectionSettings').DefaultConnectionSettings[9..-1]))

        # Originally believed that it was necessary to reset IE to defaults to
        # fix but enabling "Automatically Detect Settings" seems to be enough.
       
        # Reset IE to defaults
        # Invoke-Expression "RunDll32.exe InetCpl.cpl,ResetIEtoDefaults"

}