Hello guys , I hope that is the right forum section . My target is image a disk ( w8 ) with multiple partitions ( C - D - E ) using DISM tool . Now there is no problem to image a single partition one by one . My target is make a script that read the disk partions and make automatically the images of all partitions present into the disk Do you know if possible and or do you have some suggestion for me ? Thanks in advance for your suggestion and / or help BRs AnyB.
1 wim: Code: @echo off DISM /Capture-Image /ImageFile:Custom.wim /CaptureDir:C:\ /Name:"Partition C" /Compress:max for %%A in (D E F G H I J K L M N O P Q R S T U V W X) do (if exist %%A:\Windows\DesktopTileResources\resources.pri DISM.exe /Append-Image /ImageFile:Custom.wim /CaptureDir:%%A:\ /Name:"Partition %%A") separate wim's: Code: @echo off for %%A in (C D E F G H I J K L M N O P Q R S T U V W X) do (if exist %%A:\Windows\DesktopTileResources\resources.pri DISM.exe /Capture-Image /ImageFile:Custom.wim /CaptureDir:%%A:\ /Name:"Partition %%A" /Compress:max)
Hi guys , thanks a lot for your advices . I will try immediatly and if there is some problem I will disturb you again Brs AnyB
Are you doing this offline? If so, there's no guarantee the drive letters will be in the same order. Hidden partitions? System Partition? UEFI also has a msr partition which you can't back up...
Yes, I'm doing this task offline , about the driver letter I will fix them by diskpart script and is the same for the other partitions that I cannot backup . About the hidden partition I think that is ok only assign a letter and this is possible by diskpart . Currently my focus is image several partitons ( same disk ) without user interaction . I'm checking Mr Jinje script but there is a problem when on the target unit is present an external HDD ( I'm using it to store the wim images ) because it is present on device ID list BRs AnyB.