Skip to content

Instantly share code, notes, and snippets.

View dbaghdanov's full-sized avatar
💭
why?

Dave Baghdanov dbaghdanov

💭
why?
  • Nautilus, Inc.
View GitHub Profile
@dbaghdanov
dbaghdanov / tlsversions.ps1
Created April 12, 2018 19:42
Updates a remote server registry to enable .NET to use: TLS 1.0, 1.1, 1.2
param([Parameter(Position=0)][String[]] $Hosts, [PSCredential] $Credential)
Function Get-TlsVersions{
Param($Hosts, $Credential)
if($Credential -eq $null){
$Credential = (Get-Credential)
}
$val = (Invoke-Command -ComputerName $Hosts -Credential $Credential -ScriptBlock {[Net.ServicePointManager]::SecurityProtocol}).Value.split(",").trim()
write-output $val
}