mirror of
https://github.com/vale981/ray
synced 2025-03-10 05:16:49 -04:00
18 lines
671 B
PowerShell
18 lines
671 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
|
|
}
|
|
|
|
|