Q. How can I use the PQIDeploy tool to restore an image?

John Savill

August 1, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like