$regkeypath= "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319"
$regValueName= "SchUseStrongCrypto"
$valueExists = (Get-Item $regKeyPath -EA Ignore).Property -contains $regValueName
If ($valueExists -eq $true ){
Write-Host $regkeypath" Property Exist"
} Else {
New-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Write-Host "Property has been created"
}
$regkeypath= "HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319"
$valueExists = (Get-Item $regKeyPath -EA Ignore).Property -contains $regValueName
If ($valueExists -eq $true ){
Write-Host $regkeypath" Property Exist"
} Else {
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type 'DWord'
Write-Host "Property has been created"
}
Comments
Post a Comment