You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show-SectionMessage-sectionTitle "Install a network adapter"-sectionDescription "Either no network adapters were detected on your computer or you decided to install a new network adapter."
52
+
53
+
Write-Host" The following network adapters were detected on your computer, excluding kernel debuggers:`n"
54
+
55
+
foreach ($networkAdapterin$networkAdapters) {
56
+
Write-Host" - Device ID $($networkAdapter.DeviceID): $($networkAdapter.Name). Type: $($networkAdapter.AdapterType). Service Name: $($networkAdapter.ServiceName)"
57
+
}
58
+
59
+
Write-Host""
60
+
Write-Host" To launch the Driver Installation Module to install a new network adapter, and then go back to the previous screen, type `"DIM`" and press ENTER."
61
+
62
+
if ($firstStartup) {
63
+
Write-Host" To cancel network installation and restart your computer, type `"R`" and press ENTER."
64
+
} else {
65
+
Write-Host" To go back to the previous screen, type `"X`" and press ENTER."
66
+
}
67
+
68
+
Write-Host""
69
+
$option=Read-Host-Prompt "Choose an option described above and press ENTER"
70
+
71
+
if ($option-eq"DIM") {
72
+
# Get CPU architecture and launch Driver Installation Module
73
+
$supportedArchitectures= [List[string]]::new()
74
+
$supportedArchitectures.Add("i386")
75
+
$supportedArchitectures.Add("amd64")
76
+
$supportedArchitectures.Add("aarch64")
77
+
$systemArchitecture=Get-SystemArchitecture
78
+
79
+
if ($supportedArchitectures.Contains($systemArchitecture))
80
+
{
81
+
if (Test-Path-Path "$env:SYSTEMDRIVE\Tools\DIM\$systemArchitecture\DT-DIM.exe")
82
+
{
83
+
Clear-Host
84
+
Show-CenteredTextBox-Text "Starting the Driver Installation Module . . ."-MaxWidth 70-CenterOfAll
Write-Host"`n Portions (c) CT Tech Group LLC; (c) JJ Fullmer"
101
+
102
+
Write-Progress-Activity "PXE Helpers starting up..."-Status "Getting network adapters in the system..."-PercentComplete 0
103
+
$networkAdapters=Get-CimInstance Win32_NetworkAdapter |Where-Object { $_.ServiceName-ne"kdnic" } # there's no reason to add a kernel debugger to the network adapters list
104
+
105
+
if (($networkAdapters|Select-Object-ExpandProperty DeviceID).Count -lt1) {
$providerList.Add([PxeHelperProvider]::new("Windows Deployment Services Helper","Select this provider to deploy a Windows image using a WDS server.","0.7+","wds\wdshelper.ps1",$true,""))
30
-
#$providerList.Add([PxeHelperProvider]::new("FOG Helper", "Select this provider to deploy a Windows image using a FOG server.", "0.7.1+", "fog\foghelper.ps1", $true, "This provider is divided into 2 stages: a Windows stage and a Linux stage."))
133
+
$providerList.Add([PxeHelperProvider]::new("FOG Helper","Select this provider to deploy a Windows image using a FOG server.","0.7.1+","fog\foghelper.ps1",$true,"This provider is divided into 2 stages: a Windows stage and a Linux stage."))
31
134
32
135
functionInvoke-PxeProvider {
33
136
param (
@@ -36,6 +139,7 @@ function Invoke-PxeProvider {
36
139
37
140
if (($index-lt0) -or ($index-gt$($providerList.Count-1))) {
0 commit comments