New
#1
Batch .CMD script to integrate ALL updates in offline image using DISM
Good morning,
I have the folder: C:\Win7ISOUpdates which contains ALL the Windows updates that I want to integrate into an offline image using DISM. I have numbers at the beginning of each of the updates so as they will be integrated in the order that I specify.
The offline image is stored in: C:\Win7ISO\OFFLine.
I created a Notepad file in C:\Win7ISOUpdates called SlipStrm.cmd.
Within that file I used the command: For %%U in (*.msu) do Dism /Image:C:\Win7ISO\OFFLine /Add-Package /C:\Win7ISOUpdates:"%%U"
I mounted the image: Dism /Mount-WIM /WimFile:C:\Win7ISO\sources\install.wim /Name:"Windows 7 HOMEPREMIUM" /MountDir:C:\Win7ISO\OFFLine
I ran SlipStrm.cmd in an elevated command prompt and got an error message saying: "The C option is not recognised in this context.".
Has anyone got any ideas please?
Thanks in advance.