Files
runner-images-sangeeth/images/win/scripts/Installers/Update-DotnetTLS.ps1
Maxim Lobanov 3b5c4ebd39 [Windows] Implement minor improvements, rev 2 (#3839)
* implement minor improvements

* Update Install-WDK.ps1

* fix nitpick
2021-08-04 09:35:16 +03:00

17 lines
669 B
PowerShell

################################################################################
## File: Update-DotnetTLS.ps1
## Desc: Update DotNetFramework security protocol to TLS 1.2
################################################################################
$registryPath = "HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319"
$name = "SchUseStrongCrypto"
$value = "1"
if(Test-Path $registryPath){
Set-ItemProperty -Path $registryPath -Name $name -Value $value -Type DWORD
}
$registryPath = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319"
if(Test-Path $registryPath){
Set-ItemProperty -Path $registryPath -Name $name -Value $value -Type DWORD
}