Patch Installation through DISM

Hi All,

In September month released patch on KB 5005573 is getting failed on our 1607 machines through Bigfix. And I had tried to install it manually but it comes as “This Patch is not applicable on your computer”. So I got a workaround from Microsoft to install it by extracting cab and install it by using DISM command, from this command it has been installed manually but from bigfix it is getting completed with exit code 11. PFB the script that i am using for it:

prefetch 736e7b6a4b5633deccb3037170c7ce50d2f52616 sha1:736e7b6a4b5633deccb3037170c7ce50d2f52616 size:1747279977 http://Bigfix:52311/Uploads/736e7b6a4b5633deccb3037170c7ce50d2f52616/Windows10.0-KB5005573-x64.cab.tmp sha256:6ca51e2875cd430921111cedc56cb905d337eabdab2ebef898ce329e02a3a505
extract 736e7b6a4b5633deccb3037170c7ce50d2f52616 "c:\temp"
dos net stop wuauserv
dos net stop cryptSvc
dos net stop bits
dos net stop trustedinstaller
dos Ren “C:\Windows\SoftwareDistribution” SoftwareDistribution.1
dos Ren “C:\Windows\System32\catroot2” Catroot2.1
dos Ren “C:\Windows\logs\cbs” cbs.1
dos Ren “C:\Windows\inf\setupapi.dev.log” setupapi.dev.log.1
dos net start wuauserv
dos net start cryptSvc
dos net start bits
dos net start trustedinstaller
wait cmd.exe /C dism /online /add-package /packagepath:C:\temp\Windows10.0-KB5005573-x64.cab

I can’t type it all out on my phone, but use createfile to build a batch with all those commands.

Be sure to set action uses wow64 redirection false and then execute the batch.

As it is now, all your references to \windows\system32 will be redirected to act on \windows\syswow64 instead, until you disable the wow64 redirection.

2 Likes