Update CaptureFFU.ps1

- Add Windows Server support like in BuildFFUVM.ps1
This commit is contained in:
JonasKloseBW
2024-09-23 04:37:09 +02:00
committed by GitHub
parent b6dda55a82
commit 412e3a078c
@@ -28,13 +28,24 @@ $SKU = switch ($SKU) {
EducationN { 'EduN'} EducationN { 'EduN'}
ProfessionalWorkstation { 'Pro_Wks' } ProfessionalWorkstation { 'Pro_Wks' }
ProfessionalWorkstationN { 'Pro_WksN' } ProfessionalWorkstationN { 'Pro_WksN' }
ServerStandard { 'Srv_Std' }
ServerDatacenter { 'Srv_Dtc' }
} }
if($CurrentBuild -ge 22000){ if ($SKU -notmatch "Srv") {
if ($CurrentBuild -ge 22000) {
$Name = 'Win11' $Name = 'Win11'
} }
else{ else {
$Name = 'Win10' $Name = 'Win10'
}
} else {
$Name = switch ($CurrentBuild) {
26100 { '2025' }
20348 { '2022' }
17763 { '2019' }
Default { $DisplayVersion }
}
} }
#If Office is installed, modify the file name of the FFU #If Office is installed, modify the file name of the FFU