mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Update Convert-WimToFfu.ps1
This commit is contained in:
@@ -276,6 +276,7 @@ function Get-OSPartition
|
|||||||
Write-Host "Done. OS partition at drive $($osPartition.DriveLetter):";
|
Write-Host "Done. OS partition at drive $($osPartition.DriveLetter):";
|
||||||
|
|
||||||
Write-Host "Writing WIM at $WimPath to OS partition at drive $($osPartition.DriveLetter):...";
|
Write-Host "Writing WIM at $WimPath to OS partition at drive $($osPartition.DriveLetter):...";
|
||||||
|
|
||||||
#Server 2019 is missing the Windows Overlay Filter (wof.sys), likely other Server SKUs are missing it as well. Script will error if trying to use the -compact switch on Server OSes
|
#Server 2019 is missing the Windows Overlay Filter (wof.sys), likely other Server SKUs are missing it as well. Script will error if trying to use the -compact switch on Server OSes
|
||||||
if((Get-CimInstance Win32_OperatingSystem).Caption -match "Server"){
|
if((Get-CimInstance Win32_OperatingSystem).Caption -match "Server"){
|
||||||
Write-Host (Expand-WindowsImage -ImagePath $WimPath -Index $WimIndex -ApplyPath "$($osPartition.DriveLetter):\");
|
Write-Host (Expand-WindowsImage -ImagePath $WimPath -Index $WimIndex -ApplyPath "$($osPartition.DriveLetter):\");
|
||||||
|
|||||||
Reference in New Issue
Block a user