mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Update CaptureFFU.ps1
- Add Windows Server support like in BuildFFUVM.ps1
This commit is contained in:
@@ -28,13 +28,24 @@ $SKU = switch ($SKU) {
|
||||
EducationN { 'EduN'}
|
||||
ProfessionalWorkstation { 'Pro_Wks' }
|
||||
ProfessionalWorkstationN { 'Pro_WksN' }
|
||||
ServerStandard { 'Srv_Std' }
|
||||
ServerDatacenter { 'Srv_Dtc' }
|
||||
}
|
||||
|
||||
if($CurrentBuild -ge 22000){
|
||||
if ($SKU -notmatch "Srv") {
|
||||
if ($CurrentBuild -ge 22000) {
|
||||
$Name = 'Win11'
|
||||
}
|
||||
else{
|
||||
}
|
||||
else {
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user