Updating for NDIS default version
This commit is contained in:
Родитель
24e3b6b73c
Коммит
196e444f78
|
@ -116,11 +116,13 @@ function Test-NICAdvancedProperties {
|
|||
# This is the MSFT definition
|
||||
$AdapterDefinition = [AdapterDefinition]::new()
|
||||
|
||||
# Test NDIS Version to ensure it meets the minumum required
|
||||
# Test NDIS Version to ensure it meets the minumum required; Assumes that since this test didn't exist previously this won't affect down-level.
|
||||
# However we now have a min-bar to enforce at least the version with 2019 in the else
|
||||
if ($NodeOS.BuildNumber -eq '17763') { $NDISDefinition = $AdapterDefinition.NDIS.WS2019 }
|
||||
elseif ($NodeOS.BuildNumber -ge '21287') { $NDISDefinition = $AdapterDefinition.NDIS.WS2022 }
|
||||
elseif ($NodeOS.BuildNumber -eq '20348') { $NDISDefinition = $AdapterDefinition.NDIS.WS2022 }
|
||||
elseif ($OSDisplayVersion -eq '20H2' ) { $NDISDefinition = $AdapterDefinition.NDIS.HCI20H2 }
|
||||
elseif ($OSDisplayVersion -eq '21H2' ) { $NDISDefinition = $AdapterDefinition.NDIS.HCI21H2 }
|
||||
else {$NDISDefinition = $AdapterDefinition.NDIS.WS2019 }
|
||||
|
||||
<# Not Implemented
|
||||
$Requirements = ([Requirements]::new())
|
||||
|
|
Загрузка…
Ссылка в новой задаче