Q. How can I use the PQIDeploy tool to restore an image?
August 1, 2004
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.pqsSelect Drive 1Delete AllSelect Freespace FirstSelect Image 1Resize Image NoRestore//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:imageswinxppro.pqi /log=diskrestore.log/cmd=diskimagenew1.pqs
(The command wraps to two lines here because of space constraints.) The command restores the m:imageswinxppro.pqi image file, creates a log file of the capture's progress in diskcapture.log, and runs the diskimagenew1.pqs script.
About the Author
You May Also Like