You should be able to select an option when the computer boots. This will select an installer partition (option) which will then guide you through reinstalling Vista and your machine to the same state it was shipped in.
Iain
December 2012
I can answer this question...
what is the command code to restore mycompaq with vista to factory settings?