Microsoft KB Archive/927522

= How to restore a computer to a previous Windows installation after you install Windows Vista =

Article ID: 927522

Article Last Modified on 1/2/2007

-

APPLIES TO


 * Windows Vista Ultimate
 * Windows Vista Enterprise
 * Windows Vista Business
 * Windows Vista Home Premium
 * Windows Vista Home Basic
 * Windows Vista Business 64-bit edition
 * Windows Vista Enterprise 64-bit edition
 * Windows Vista Home Premium 64-bit edition
 * Windows Vista Home Basic 64-bit edition
 * Windows Vista Ultimate 64-bit edition

-



INTRODUCTION
You can do a clean installation of Windows Vista on a hard disk partition that contains an existing Microsoft Windows installation. If you do not format the hard disk, all the following items will be saved automatically in the Windows.OLD folder after Windows Vista is installed:
 * The previous operating system
 * User data
 * Program files

To confirm that these items have been saved, make sure that the Windows.OLD folder exists in the root folder of the Windows hard disk. Typically, the Windows hard disk is the C drive. If the Windows.OLD folder exists on this drive, files from the previous Windows installation are saved during the Windows Vista installation process. Therefore, you can restore the computer to the previous Windows installation.



MORE INFORMATION
To restore a computer to a previous Windows installation after you install Windows Vista, follow these steps:  Determine whether you have sufficient free space on the Windows hard disk to copy the contents of the Windows.OLD folder. To do this, determine the size of the Windows.OLD folder, and then compare the size to the total amount of free space on the hard disk. You will need this information in step 5. Start the Windows Recovery Environment (Windows RE), and then open a command prompt. To do this, follow these steps:  Put the Windows Vista installation disc in the disc drive, and then restart the computer. Press a key when you are prompted to restart from the disc. Select a language, a time, a currency, and a keyboard or other input method, and then click Next. Click Repair your computer. Click the operating system that you want to repair, and then click Next.</li> In the System Recovery Options dialog box, click Command Prompt.</li></ol> </li> Rename the Windows folder and the Program Files folder. To do this, type the following commands. Press ENTER after you type each command.

C:

cd\

ren Windows Windows.Vista

ren &quot;Program Files&quot; &quot;Program Files.Vista&quot;

</li> Remove the Documents and Settings junction point.

Note A junction point is a pointer to another folder.

If the Windows Vista installation was a clean installation, the Documents and Settings folder will be empty. To remove the Documents and Settings junction point, type the following command, and then press ENTER:

rd &quot;Document and Settings&quot;

Important After you type this command, you may receive the following error message:

The directory is not empty.

If you receive this error message, the Documents and Settings folder contains data and is not a junction point. Back up the data in this folder by copying the folder to another drive on the computer. Alternatively, you can rename the folder by using the ren command.</li> Copy or move the content of the Windows.OLD folder to the root folder. To do this, follow one of these steps, as appropriate for the situation: <ul> If there is sufficient space on the hard disk to copy the Windows.OLD folder, type the following command, and then press ENTER:

xcopy /s /h c:\windows.old\*.* c:\

</li> If there is insufficient space on the hard disk to copy the Windows.OLD folder, type the following commands. Press ENTER after you type each command.

move /y c:\windows.old\windows c:\

move /y &quot;c:\windows.old\program files&quot; c:\

move /y &quot;c:\windows.old\documents and settings&quot; c:\

move /y c:\windows.old\users c:\

</li></ul> </li> Restore the boot sector for the previous Windows installation. To do this, follow one of these steps, as appropriate for the situation: <ul> If the previous Windows installation was Microsoft Windows XP or Microsoft Windows 2000, type the following command, and then press ENTER:

E:\boot\bootsect /nt52 c:

</li> If the previous Windows installation was Windows Vista, type the following command, and then press ENTER:

E:\boot\bootsect /nt60 c:

</li></ul>

Note In the previous commands, drive E is the ROM drive, and drive C is the system partition. The system partition contains the Boot Configuration Data (BCD) store and the Windows Boot Manager files.</li> Close the Command Prompt window, and then click Restart.</li></ol>

Keywords: kbexpertisebeginner kbhowto kbinfo KB927522

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.