A. When you use PQIDeploy to restore an image, you must create a script file in the PowerQuest format, just as you do when you create an image, as explained in the FAQ "How can I use the PQIDeploy tool to capture an image?" To restore an image, create a script file that contains the following lines:

// Restore to first disk                              // diskimagenew1.pqs                              Select Drive 1                              Delete All                              Select Freespace First                              Select Image 1                              Resize Image No                              Restore                              //Select Freespace Last                              //Create /FS=ntfs /Label="Data"

The script deletes everything from the first disk, selects the free space at the start of the disk, then restores the image that you'll specify from the command line. The two lines that I've commented out here at the end of the file (by preceding the lines with slashes) use the remaining space on the disk to create an NTFS partition with the label "Data." If you want to create this partition, simply omit the first two slashes from the last two lines.

To restore the actual image, you run the following command:

pqideploy /img=m:\images\winxppro.pqi /log=diskrestore.log                              /cmd=diskimagenew1.pqs

(The command wraps to two lines here because of space constraints.) The command restores the m:\images\winxppro.pqi image file, creates a log file of the capture's progress in diskcapture.log, and runs the diskimagenew1.pqs script.