Update BuildFFUVM.ps1

- Fix bug in New-OSPartition
- CompactOS is now avoided on Windows Server
This commit is contained in:
JonasKloseBW
2024-09-23 04:11:15 +02:00
committed by GitHub
parent af28624e2d
commit 4b33627d19
+1 -1
View File
@@ -2737,7 +2737,7 @@ function New-OSPartition {
if ((Get-CimInstance Win32_OperatingSystem).Caption -match "Server") {
WriteLog (Expand-WindowsImage -ImagePath $WimPath -Index $WimIndex -ApplyPath "$($osPartition.DriveLetter):\")
}
if ($CompactOS) {
elseif ($CompactOS) {
WriteLog '$CompactOS is set to true, using -Compact switch to apply the WIM file to the OS partition.'
WriteLog (Expand-WindowsImage -ImagePath $WimPath -Index $WimIndex -ApplyPath "$($osPartition.DriveLetter):\" -Compact)
}