PowerShell DISM cmdlets only work on Insider builds
dekart811 opened this issue · comments
dekart811 commented
This should be reverted, because `-StartComponentCleanup` for `Repair-WindowsImage` doesn't exist in *Windows 10 22H2* or *Windows 11 23H2*. So `Repair-WindowsImage -Path "$mainOSDrive\scratchdir" -StartComponentCleanup -ResetBase` will **always** fail.
So the only way to build this right now properly is by using an Windows 11 insider build, which isn't a good idea IMO.
Originally posted by @dekart811 in #173 (comment)