OSDeploy / OSDBuilder

PowerShell Module
http://osdbuilder.com
MIT License
193 stars 55 forks source link

Workaround for RPC/DISM error servicing Win11 22H2 #87

Closed suazione closed 1 year ago

suazione commented 1 year ago

Update Update-CumulativeOS in AllFunctions.ps1 Error is caused by the function Test-WindowsPackageCAB used in the Update-CumulativeOS function. For some reason Get-WindowsPackage -PackagePath errors out on (only) W11 22H2. After the RPC error all subsequent DISM calls seem to fail. No idea why this happens on Win11 22H2 only. Updating Update-CumulativeOS to skip the Test-WindowsPackageCAB and setting it "manually" to CombinedMSU if OS is Win11 22H2 is a workaround. Subsequent Update-OSMedia and New-OSDBuild completes successfully after this change.

xe0n11 commented 1 year ago

Can confirm this works.

eastcoastnjdc commented 1 year ago

I have been trying to modify the script for the workaround above to no avail, could you advise the change you made to get this to work please? Thanks!

vbateman commented 1 year ago

I can also confirm this fix works build 22621.674