Compartir a través de


Recovery Console commands

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Recovery Console commands

The following commands can be used with the Recovery Console. For more information about each command, type the command name followed by /? in the Recovery Console.

For more information about the Recovery Console, see "Tools for Troubleshooting" at the Microsoft Windows Resource Kits Web site.

  • 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 system partition.

  • Fixmbr

    Repairs the master boot record of the partition boot sector.

  • Format

    Formats a disk.

  • Help

    Displays a list of the commands you can use in the Recovery Console.

  • Listsvc

    Lists the services and drivers available on the computer.

  • Logon

    Logs on to an Windows operating system installation.

  • Map

    Displays the drive letter mappings.

  • Mkdir (Md)

    Creates a directory.

  • More (Type)

    Displays a text file.

  • 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.