You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/win_route/files/Test-Os.ps1

13 lines
204 B
PowerShell

$os = [Environment]::OSVersion
$major = $os.Version.Major
$minor = $os.Version.Minor
$ok = $false
if(($major -gt 6)){
$ok = $true
}
elseif (($major -eq 6) -and ($minor -ge 3)){
$ok = $true
}
$ok