Recovery Console Commands

The following commands can be used with the Recovery Console.

Note: The drive letter may need to be changed or indicated to properly execute these commands.

For example, to change to drive letter C, type C: and then press Enter.

Some of the following commands require a drive to be specified with the command, for example, to run fixmbr on the C partition, type fixmbr c: and then press Enter.

Attrib Changes the attributes of a file or directory.
Batch Executes the commands specified in the text file.
Bootcfg Boot file (boot.ini) configuration and recovery.
ChDir (Cd) Displays the name of the current directory or changes the current directory.
Chkdsk Checks a disk and displays a status report.
Cls Clears the screen.
Copy Copies a single file to another location.
Delete (Del) Deletes one or more files.
Dir Displays a list of files and subdirectories in a directory.
Disable Disables a system service or a device driver.
Diskpart Manages partitions on your hard drives.
Enable Starts or enables a system service or a device driver.
Exit Exits the Recovery Console and restarts your computer.
Expand Extracts a file from a compressed file.
Fixboot Writes a new partition boot sector onto the specified partition.
Fixmbr Repairs the master boot record of the specified disk.
Format Formats a disk.
Help Displays a list of the commands that you can use in the Recovery Console.
Listsvc Lists the services and drivers available on the computer.
Logon Logs on to a Windows installation.
Map Displays the drive letter mappings.
Mkdir (Md) Creates a directory.
More Displays a text file.
Net Use Connects a network share to a drive letter.
Rename (Ren) Renames a single file.
Rmdir (Rd) Deletes a directory.
Set Displays and sets environment variables.
Systemroot Sets the current directory to the systemroot directory of the system you are currently logged on to.
Type Displays a text file.