Imagex command tool

  1. Create Windows PE boot disk on your disk or flash drive
  2. Prepare your unattend.xml file
  3. Prepare your machine for imaging: sysprep /oobe /generalize /unattend:unattend.xml
  4. Boot your machine to win PE environment.
  5. Connect to remote share which will be storing your WIM files. net use w: \\server\share /user:domain\user password
  6. Capture the machine image to the remote share: imagex /capture d: w:\imagename.wim "Description" /compress fast /verify d: is the volume containing your machine operating system and applications
  7. Boot any other identical machine to the PE environment and prepare the target deployment volume.
  8. net use w: \\server\share /user:domain\user password
  9. prepare the disk, partition, volume using DISKPART tool
  10. don't forget about the boot sector if you applied "clean disk" command:  bootsect /nt60 driveletter: /mbr
  11. Apply the image: imagex /apply w:\imagename.wim 1 d:\