Updating for NDIS default version

This commit is contained in:
Dan Cuomo 2021-08-04 12:53:05 -07:00 коммит произвёл GitHub
Родитель 24e3b6b73c
Коммит 196e444f78
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -116,11 +116,13 @@ function Test-NICAdvancedProperties {
# This is the MSFT definition # This is the MSFT definition
$AdapterDefinition = [AdapterDefinition]::new() $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 } 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 '20H2' ) { $NDISDefinition = $AdapterDefinition.NDIS.HCI20H2 }
elseif ($OSDisplayVersion -eq '21H2' ) { $NDISDefinition = $AdapterDefinition.NDIS.HCI21H2 } elseif ($OSDisplayVersion -eq '21H2' ) { $NDISDefinition = $AdapterDefinition.NDIS.HCI21H2 }
else {$NDISDefinition = $AdapterDefinition.NDIS.WS2019 }
<# Not Implemented <# Not Implemented
$Requirements = ([Requirements]::new()) $Requirements = ([Requirements]::new())