Anybody knows how to use sysprep and imagex to create image and deploy that image when the original disk has more than one partitions on it?
migrated from stackoverflow.com Apr 27 '11 at 9:00
This question came from our site for professional and enthusiast programmers.
You cant capture more than one partition into one image. However you can write a .bat script that will capture both C:\ and D:\ partitions and then you can write another .bat file to re-partition the drive and deploy these two .wim images. If you don't know what .bat files do they basically string multiple command line commands and perform the actions for all of them. In order for the deploy.bat file to work you'll need to have the autoDiskPart.txt file saved were it can read it. Capture commands can be run on a local machine while booted to windows. You'll get better results however if you run them from a winPE disc that has ImageX added to it. You have to run the deployment from a disc such as this.
Disc Part Example Multiple Partitions
for deploy file to work this must be saved as "autoDiskPart.txt"
capture.bat file Example
deploy.bat file Example