The Windows Recovery Environment Command Prompt is a text-based console that allows that allows you to perform many tasks on your computer by typing in the commands that you would like to execute. These commands allow you to perform a range of tasks from managing the files on your hard drives, formatting and repartitioning hard drives, configuring how Windows boots, deleting and copying files, scanning your computer for malware, as well as many other tasks. In past versions of the Windows, the Command Prompt would typically not allow you to run any of your Windows programs that require a graphical user interface. The Command Prompt in the Windows Recovery Environment, though, does allow you to launch certain Windows programs. This is a huge advantage as you now have a much larger variety of tools at your disposal to repair your computer.
To access the Windows Recovery Environment Command Prompt you need to boot your computer off of the Windows Vista DVD by inserting it into the DVD reader on your computer and turning your computer on. Your computer will start and you should see the BIOS listing the hardware on your computer as well as other information. When that information has been cleared, your computer will see that a bootable DVD is inserted and present a prompt similar to Figure 1 below.
Figure 1. Boot the computer from the CD or DVD
As you want to boot the computer from the Windows Vista DVD, you need to press a key on your keyboard, and any key will do, when you see the above prompt. It is possible that the DVD that came with your computer does not allow you to boot off from it. If this is the case, then your computer manufacturer most likely installed the Windows Recovery Environment directly on to a small partition on your hard drive. To access this partition, you would slowly tap the F8 key on your keyboard after the BIOS information clears from your screen until you see the Windows startup menu. From this menu use your arrow keys to select the option for the Windows Recovery Environment and press the enter key on your keyboard. You should now see a black screen with a white status bar at the bottom stating Windows is loading files.... After a while, the status bar will turn completely white and you will see a screen stating that Windows is loading. The Windows Setup environment will continue to load and when finished you will be presented with a screen similar to Figure 2.
Figure 2. Configure language and location options in Vista Setup
At this screen you should configure the Language to install, Time and currency format, and Keyboard or input method options so that they are set correctly for your location. When done, press the Next button. You will now be at the main Windows Vista setup screen where you would normally install Vista on to a computer.
Figure 3. Windows Vista Setup options
You should now click on the Repair your computer option, which will bring you to a new screen where the repair process will look for all Windows Vista installations on your computer. When done you will be presented with the System Recovery Options dialog box as shown in Figure 4 below.
Figure 4. System Recovery Options
Select the Vista installation you would like to repair, and if there are drivers you need to load in order for Vista to access any of your drives or other components, then you should click on the Load Drivers button to load them. When ready, press the Next button to continue. If the repair process does not detect any problems starting Vista, it will display a list of available recovery tools. If it does detect a problem it will attempt to perform a Startup Repair to automatically fix these problems. If you would like to allow this process to continue, then you can read more about it here. Otherwise click on the Cancel button and select the View advanced options for system recovery and support option to see the list of recovery tools.
Figure 5. System Recovery Options
At this screen you would then click on the Command Prompt option. Once you click on that option, the Command Prompt will open as shown in Figure 6 below.
Figure 6. Command Prompt in the Windows Recovery Environment
If you are unfamiliar with the Windows Command Prompt, the first thing you may notice is that there is no graphical user interface to and instead you need to type in all of your commands. Though this may be daunting, once you learn the commands and programs that you can use in the command prompt, you will find it a very powerful repair tool for removing stubborn malware, fixing boot issues, tweaking the Windows Boot Manager when you cannot load Windows, and accessing your files. A basic introduction to the Windows command prompt can be found here: Introduction to the Windows Command Prompt.
Using the command prompt is simple. When you want to perform a task you simply type them in with your keyboard, and when done typing the command, press the enter key. If the command was entered correctly, it will execute and display the information you requested. A powerful feature of the Recovery Console Command Prompt is that you can not only run console programs, but you can also run certain Windows programs such as Notepad or an antivirus program. Unfortunately, not all Windows programs will be able to run in this environment, so you will need to test them out one at a time.
To help get you started with using the Command Prompt I have listed a series of console commands that work in this environment. To get the help information for each of these programs you can type the program name followed by /h and press the enter key. For example, to see the help information for the copy command you would type copy /h and then press the enter key. As more programs and commands are found they will be added to the lists below. Each of the console commands must be typed into the console in order to execute them.
|copy||Copy a file to another location.|
|move||Move a file to another location.|
|rd||Remove an empty directory.|
|ren||Rename a file or directory.|
|more||Show the contents of a file one page a time. Typically used to read text/ascii files.|
|type||Show the contents of a file all at once without pausing at each page like the more command. Typically used to read text/ascii files.|
|xcopy||Copy a folder and all its contents to another location.|
|mkdir||Make a new directory.|
|diskpart||Load the Windows disk management program. From this program you can create, delete, shrink, and expand your existing partitions as well as get information about partitions and hard drives.|
|dir||List the contents of the current directory or the directory you specify as an argument.|
|cd||Change your current directory to another one.|
|attrib||Change the file attributes on a particular file or directory.|
|del||Delete a file|
|bcdedit||Displays and allows you to change how Windows boots up. This command is useful for people who are having trouble with the Windows Boot Manager.|
|chkdsk||Scan your hard disk for errors and fix them.|
Windows Program Name
|C:\Windows\Notepad.exe||Opens up the Windows Notepad so you can view and edit text files.|
|Ad-Aware||Make sure you update the program in normal mode before running it in the Command Prompt. You should use a custom scan and disable log file creation, memory scanning, registry scanning, hosts scanning, process scanning, and IE scanning. You should also specify the drives you would like to scan as it will default to the CD drive, which does not need to be scanned.|
|Spybot - Search and Destroy||Same notes as Ad-aware|
When you are finished using the Command Prompt you can exit it by typing exit and then pressing the enter key on your keyboard. The command prompt will close and you will now be back at the list of available repair tools.
The Windows Recovery Environment Command Prompt is such a powerful tool because you can perform actions on your files and data without having to be in Windows. This means that if you are infected with malware you can use the recovery environment to clean your computer without fear of the malware hindering your efforts. If you find other Windows programs that work within the recovery environment, please let us know about them in the forums.
If you are still having problems after using this tool, then you can try the other advanced repair tools. Tutorials on how to use these tools can be found below:
As always if you have any questions or tips on using the Vista command prompt you should let us know in the Windows Vista Help Forums.
Windows Vista comes with a rich feature set of diagnostic and repair tools that you can use in the event that your computer is not operating correctly. These tools allow you to diagnose problems and repair them without having to boot into Windows. This provides much greater flexibility when it comes to fixing problems that you are not able to resolve normally. This guide focuses on using the ...
The Windows 7 System Recovery Command Prompt is a text-based console that allow you to perform maintenance and recovery tasks on your computer by typing the commands that you would like to execute. These commands allow you to perform a wide variety of tasks such as replace infected files, delete infections, repair boot up configurations for your hard drive, resize hard drive partitions, as well as ...
Before Windows was created, the most common operating system that ran on IBM PC compatibles was DOS. DOS stands for Disk Operating System and was what you would use if you had started your computer much like you do today with Windows. The difference was that DOS was not a graphical operating system but rather purely textual. That meant in order to run programs or manipulate the operating system ...
A powerful new feature in Windows Vista is the ability to use System Restore while in the Vista Recovery Environment. This allows you to restore your computer to a previous working state even in the event that you can't normally start Windows Vista. Before you can use System Restore to repair Vista, though, System Restore will need to have been enabled and running previously. The reason is ...
If you are an owner of Windows Vista Business, Ultimate, or Enterprise then you have access to a feature called Complete PC Backup and Restore. This feature allows you to create backup images of your computer so that you can do a system-wide restore in the case of complete system failure. This allows you to not only restore user data and programs, but also the entire operating system onto new or ...