simplify version check

master
Körner, Simon 5 years ago
parent 42854fb128
commit 06d2807d7c

@ -36,7 +36,6 @@ function Get-BetterADUser {
#check for old version
$version = ([String]$PSVersionTable.PSVersion).Substring(0,1)
if($version -lt 7) {
if($PSVersionTable.PSVersion.Major -le 5){
Write-Host -ForegroundColor Red 'start pwsh instead of powershell'
}
Loading…
Cancel
Save