Last active
November 2, 2023 01:47
-
-
Save nicksterx/8cabfd5c696bd23f8ab4f11ca112cb26 to your computer and use it in GitHub Desktop.
Disable HTTP/2 Protocol on Windows 10 and Windows 2016 Desktops With some web browsers, you might encounter the error ERR_SPDY_PROTOCOL_ERROR when accessing a Windows 10 VADC or Windows 2016 VADC desktop. You can prevent this error by disabling the HTTP/2 protocol on the desktop.
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
#2017-20-04 | |
#Disable HTTP/2 Protocol on Windows 10 and Windows 2016 Desktops | |
#With some web browsers, you might encounter the error ERR_SPDY_PROTOCOL_ERROR when accessing a Windows 10 VADC or Windows 2016. | |
#You can prevent this error by disabling the HTTP/2 protocol on the desktop. | |
#http://stackoverflow.com/a/31714461/2375884 | |
#https://pubs.vmware.com/horizon-7-view/index.jsp?topic=%2Fcom.vmware.view-agent.directconnectionplugin.doc%2FGUID-BE0738EC-E35E-4215-8E1E-1F08F911D592.html | |
$registryPath = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters" | |
$nameEnableHttp2Tls = "EnableHttp2Tls" | |
$typeEnableHttp2Tls = "REG_DWORD" | |
$valueEnableHttp2Tls = "0" | |
$nameEnableHttp2Cleartext = "EnableHttp2Cleartext" | |
$typeEnableHttp2Cleartext = "REG_DWORD" | |
$valueEnableHttp2Cleartext = "0" | |
If(!(Test-Path $registryPath)){ | |
New-ItemProperty -Path $registryPath -Name $nameEnableHttp2Tls -Value $valueEnableHttp2Tls -PropertyType $typeEnableHttp2Tls | |
New-ItemProperty -Path $registryPath -Name $nameEnableHttp2Cleartext -Value $valueEnableHttp2Cleartext -PropertyType $typeEnableHttp2Cleartext | |
} else { | |
Set-ItemProperty -Path $registryPath -Name $nameEnableHttp2Tls -Value $valueEnableHttp2Tls -PropertyType $typeEnableHttp2Tls | |
Set-ItemProperty -Path $registryPath -Name $nameEnableHttp2Cleartext -Value $valueEnableHttp2Cleartext -PropertyType $typeEnableHttp2Cleartext | |
} |
Hi sir Can i ask where to code this one ?
It’s powershell. Save the ps1 save execute it as admin or paste it into a admin powershell window
It has an error im using admin power shell
…On Wed, Oct 25, 2023, 10:17 AM Nick Bachicha ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hi sir Can i ask where to code this one ?
It’s powershell. Save the ps1 save execute it as admin or paste it into a
admin powershell window
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/nicksterx/8cabfd5c696bd23f8ab4f11ca112cb26#gistcomment-4737722>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDQHHEFVIYW3SVSOFPBKIRTYBBZB7BFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA2DMOBYGQZDEONHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
What is the error?
New-ItemProperty : Cannot find Path
Did you fix it? What version of OS are you using?
Is Windows and using powershell
…On Thu, Nov 2, 2023, 1:06 AM Nick Bachicha ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Did you fix it? What version of OS are you using?
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/nicksterx/8cabfd5c696bd23f8ab4f11ca112cb26#gistcomment-4746180>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDQHHEGLLFJHSG3Y7PNGVATYCJ6PZBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVA2DMOBYGQZDEONHORZGSZ3HMVZKMY3SMVQXIZI>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi sir Can i ask where to code this one ?