eda6a6baee
* adds win_route windows module * fix documentation indent * fix documentation pep8 issues * fix documentation issues * genaral code review * changed 'supported_by' in doc, supports_check_mode removed * use of powershell cmdlet instead of route command, destnation in CIDR format, adds check mode support * adds win_psmodule module * documentation review * documentation review * removed files accidentatlly pushed * add integration tests, add return in documentation * add conditional statement in test, add os requirementes in documentation * fix documentation * fix os check in tests
13 lines
No EOL
204 B
PowerShell
13 lines
No EOL
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 |