Skip to content

TechRepublic

  • Top Products
  • AI
  • Developer
  • Payroll
  • Security
  • Project Management
  • Accounting
  • CRM
  • Academy
Resources
  • TechRepublic Premium
  • TechRepublic Academy
  • Newsletters
  • Resource Library
  • Forums
  • Sponsored
Go Premium
Popular Topics
  • Top Products
  • AI
  • Developer
  • Payroll
  • Security
  • Project Management
  • Accounting
  • CRM
  • Academy
  • Project Management
  • Innovation
  • Cheat Sheets
  • Big Data
  • Tech Jobs
View All Topics
Go Premium
Microsoft

Access the Command Prompt from Windows 8 Recovery Drive

By Greg Shultz April 26, 2013, 1:31 AM PDT

Image
1
of 10

Fig_A_4-26.JPG
Fig_A_4-26.JPG
Access the Command Prompt from Windows 8 Recovery Drive

When you are prompted to choose and option, select the Troubleshoot tile

When you are prompted to choose and option, select the Troubleshoot tile

ntThis screenshot gallery is also available as a post in the TechRepublic Windows and Office Blog.

n

ntIn a recent series of blog posts, I showed you how to use the various tools on the Windows 8 Recovery Drive to revive an ailing Windows 8 installation. To refresh your memory here is a brief rundown on what I have covered so far:

n

    nt

  • nttCreate a Recovery Drive in Windows 8 – I showed you how to create a Recovery Drive in for both a flash drive and an optical disk.
  • nt

  • nttBe ready to use the Windows 8 Recovery Drive – I showed you how to use the Recovery Drive and exactly what to expect if you should ever need it.
  • nt

  • nttHow the Windows 8 Automatic Repair feature works – I showed you how the access and use the Automatic Repair tool from the Recovery Drive.
  • nt

  • nttRefresh your Windows 8 system from a Recovery Drive – I showed you how to use the default mode of the Refresh your PC tool from the Recovery Drive.
  • nt

  • nttCreate a custom recovery image for Windows 8’s Refresh your PC tool – I showed you how to use the Recimg command line tool to create a custom recovery image for the Refresh your PC tool.
  • nt

  • nttReset your PC from a Windows 8 Recovery Drive – I showed you how to use the Reset your PC tool from the Recovery Drive.
  • nt

  • nttRestore Windows 8 with System Image Recovery – I showed you how to create and use System Image Recovery tool from the Recovery Drive to restore your hard disk.
  • n

n

ntHowever, there is one more feature on the Recovery Drive that you can use to help you access and repair Windows 8 – the Command Prompt. From the Command Prompt, you’ll find that there are numerous command line tools are at your disposal. In addition, the Recovery Drive Command Prompt allows you to run two GUI based applications: the Registry Editor, which you can use to edit the registry, and Notepad, which you can use to recover data.

n

ntIn this edition of the Windows Desktop Report, I’ll show you how to access the Command Prompt from Windows 8’s Recovery Drive. I’ll then show you how to, use the Registry Editor and Notepad.

n

ntnn

n

ntAccessing the Command Prompt

n

ntTo boot up your system, just insert a USB Recovery Drive or an optical disc Recovery Drive and restart your system. After your system boots from the Recovery Drive and you are prompted to choose an option, select the Troubleshoot tile as shown in Figure A.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

From the Advanced options screen, select the System Command Prompt tile

From the Advanced options screen, select the System Command Prompt tile

ntWhen you see the Advanced options screen, as shown in Figure C, select the Command Prompt tile.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

You can use a host of command line tools from the Recovery Drive's Command Prompt

You can use a host of command line tools from the Recovery Drive's Command Prompt

ntOnce you do, you will see the Command Prompt windows like the one shown in Figure D.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

When the Registry Editor launches, it will display the registry from the Recovery Environment

When the Registry Editor launches, it will display the registry from the Recovery Environment

ntAvailable command line tools

n

ntOnce you have the Command Prompt up and running, you can of course access and use a host of standard command line tools to navigate, manage files, and perform certain types of repair and recovery tasks. A list of the most common command line tools is shown in Table A.

n

ntTable A: Command line tools available from the Recovery Drive’s Command Prompt.

n

nt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

nt

n

ntttt

ntttttCommand

nttt

ntttt

ntttttDescription

nttt

ntttt

ntttttAttrib

nttt

ntttt

ntttttChanges the attributes of a file or directory

nttt

ntttt

ntttttBcdboot

nttt

ntttt

ntttttBcd boot file creation and repair tool

nttt

ntttt

ntttttBcdedit

nttt

ntttt

ntttttBoot Configuration Data Store Editor

nttt

ntttt

ntttttChDir (Cd)

nttt

ntttt

ntttttDisplays the name of the current directory or changes the current directory

nttt

ntttt

ntttttChkdsk

nttt

ntttt

ntttttChecks a disk and displays a status report

nttt

ntttt

ntttttCls

nttt

ntttt

ntttttClears the screen

nttt

ntttt

ntttttCopy

nttt

ntttt

ntttttCopies files or folders to another location

nttt

ntttt

ntttttDelete (Del)

nttt

ntttt

ntttttDeletes one or more files

nttt

ntttt

ntttttDir

nttt

ntttt

ntttttDisplays a list of files and subdirectories in a directory

nttt

ntttt

ntttttDiskpart

nttt

ntttt

ntttttManages partitions on your hard drives

nttt

ntttt

ntttttExit

nttt

ntttt

ntttttExits the Command Prompt and returns you to the Recovery Drive menu

nttt

ntttt

ntttttExpand

nttt

ntttt

ntttttExtracts a file from a compressed file

nttt

ntttt

ntttttFormat

nttt

ntttt

ntttttFormats a disk

nttt

ntttt

ntttttIcacls

nttt

ntttt

ntttttDisplay or modify access control lists (ACLs) or change file and folder permissions

nttt

ntttt

ntttttManage-bde

nttt

ntttt

ntttttConfigure BitLocker drive encryption on disk volumes.

nttt

ntttt

ntttttMkdir (Md)

nttt

ntttt

ntttttCreates a directory

nttt

ntttt

ntttttMore

nttt

ntttt

ntttttDisplays a text file

nttt

ntttt

ntttttRecover

nttt

ntttt

ntttttRecovers readable information from a bad or defective drive

nttt

ntttt

ntttttRename (Ren)

nttt

ntttt

ntttttRenames a single file

nttt

ntttt

ntttttRmdir (Rd)

nttt

ntttt

ntttttDeletes a directory

nttt

ntttt

ntttttRobocopy

nttt

ntttt

ntttttCopies files or folders to another location

nttt

ntttt

ntttttSfc

nttt

ntttt

ntttttScans and checks the integrity of your Windows files

nttt

ntttt

ntttttSet

nttt

ntttt

ntttttDisplays and sets environment variables

nttt

ntttt

ntttttType

nttt

ntttt

ntttttDisplays a text file

nttt

ntttt

ntttttXcopy

nttt

ntttt

ntttttCopies files or folders to another location

nttt

n

ntEditing the registry

n

ntIf your Windows 8 system is failing to boot properly after a registry tweak or you need to extricate some nasty malware that has infiltrated the registry, you can launch the Registry Editor from the Recovery Drive’s Command Prompt. However, because you have booted your system from the Recovery Drive, the Registry Editor will by default load the registry from the Recovery Environment, not the registry from your Windows installation. Fortunately, once you know how, you can manually load the registry from your Windows installation.

n

ntAs you will notice, the default drive letter for the Recovery Environment is X. However, your Windows installation drive is still available and assigned to another drive letter. Most likely the Windows installation drive is D, but you can find out for sure by typing the following command:

n

ntbcdedit | find “osdevice”

n

ntWhen you run this command, it will display

n

ntosdevice    partition=?:

n

ntWhere the “?” is your Windows installation drive letter.

n

ntNow that you know the drive letter of your Windows installation, type the following command to launch the Registry Editor:

n

ntregedit

n

ntWhen the Registry Editor launches, select HKEY_LOCAL_MACHINE. Now, pull down the File menu and select the Load Hive command, as shown in Figure E.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

The config folder contains all of the registry hive files

The config folder contains all of the registry hive files

nt 

n

ntWhen you see the Load Hive dialog box, use the Look in drop down to select the drive letter of your Windows installation that you found earlier. Then navigate to the Windows\System32\config folder, as shown in Figure F. Then, choose the hive that you want to load. Table B shows the available registry keys and the location of the hive files.

n

nt 

n

ntFor example, if you suspect that the Run key in the registry is being used to launch malware, you would select the SOFTWARE hive.

n

ntTable B: The available registry keys and the location of the hive files.

n

nt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

nt

n

ntttt

ntttttRegistry Key

nttt

ntttt

ntttttPath to hive file

nttt

ntttt

ntttttHKEY_LOCAL_MACHINE \SAM

nttt

ntttt

nttttt %windir%\system32\config\SAM

nttt

ntttt

ntttttHKEY_LOCAL_MACHINE \SYSTEM

nttt

ntttt

nttttt %windir%\system32\config\SYSTEM

nttt

ntttt

ntttttHKEY_LOCAL_MACHINE \SOFTWARE

nttt

ntttt

nttttt %windir%\system32\config\SOFTWARE

nttt

ntttt

ntttttHKEY_USERS \.Default

nttt

ntttt

nttttt %windir%\system32\config\DEFAULT

nttt

ntttt

ntttttHKEY_CURRENT_USER

nttt

ntttt

nttttt %userprofile%\ntuser.dat

nttt

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

When you select a hive, you will be prompted to give that hive a name

When you select a hive, you will be prompted to give that hive a name

ntWhen you select a hive, you will be prompted to give that hive a name. For the purposes of this registry editing session this name is just a temporary placeholder, so you can use any name that you want. For my example, I am going to just use the word Test, as shown in Figure G. To continue, click OK.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

In my example, the entire HKEY_LOCAL_MACHINE \\SOFTWARE hive has been loaded

In my example, the entire HKEY_LOCAL_MACHINE \\SOFTWARE hive has been loaded

ntAt this point, the entire hive is loaded into the Registry Editor so that you can make any changes that you hope will allow your Windows 8 system to boot up normally. In my example, the entire HKEY_LOCAL_MACHINE \SOFTWARE hive has been loaded into the Registry Editor under the name Test, as shown in Figure H.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

Test hive is the equivalent to HKEY_LOCAL_MACHINE \\SOFTWARE hive

Test hive is the equivalent to HKEY_LOCAL_MACHINE \\SOFTWARE hive

ntContinuing with my example, I would open the Test hive, remembering that it is the equivalent to HKEY_LOCAL_MACHINE \SOFTWARE and then navigate the rest of the way down to the Run Key (Microsoft\Windows\CurrentVersion\Run), as shown in Figure I.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

Once you are finishes, select your hive and then use the Unload Hive command

Once you are finishes, select your hive and then use the Unload Hive command

ntAfter you make changes, you will then need to navigate back up the tree and select the Test hive, just as shown in Figure H. Now, pull down the File menu and select the Unload Hive command, as shown in Figure J.

n

ntAt this point, any changes that you made are now incorporated in the registry from your Windows installation. To continue, close the Registry Editor and then close the Command Prompt window. When you do, you’ll return to the main Recovery Disk menu where you can select the Continue tile, which will reboot the system and start Windows 8 with the changes that you made registry.

n

ntCredit: Images by Greg Shultz for TechRepublic

Access the Command Prompt from Windows 8 Recovery Drive

Use the Send To command from the Open dialog box to copy files to a flash drive or external USB drive

Use the Send To command from the Open dialog box to copy files to a flash drive or external USB drive

ntBacking up data

n

ntIf your Windows 8 system stopped booting up normally before you had a chance to make a current backup of your data, chances are that the first thing that you would want to do is backup your data files. Well, if you look back at the command line tools shown in Table A, you’ll find several commands that you can use to back up your data: Copy, Robocopy, and Xcopy.

n

ntHowever, if you’re like most users, you’d rather work from a GUI than a command prompt when it comes to copying hundreds of files. Fortunately, the Windows Recovery Environment allows you to run Notepad. How is Notepad going to help you copy files you may be thinking? Well, in the majority of Windows applications, the Open and Save as dialog boxes are essentially pared down versions of File Explorer. As such, you can use the Open dialog box just like File Explorer and will be able to easily copy all of your data files to a backup drive.

n

ntOnce you have booted into the Recovery Environment connect a flash drive or external USB drive to your system. Now, access the Command Prompt window and type notepad.exe on the command line. Once you have Notepad up and running, just press [Ctrl]+O to access the Open dialog box. Leave the File name box blank, select All Files (*.*) in the Files of type list, and just leave the Encoding setting as it is.

n

ntNow, use the Computer icon to locate your Windows installation drive. (Refer to using the bcdedit | find “osdevice” command as described above.) To continue, navigate to your user profile folder, as shown in Figure K. Then, right click on the folder or folders containing the files that you want to backup and then select the Send to command. When you do, you can select your flash drive or external USB drive. When you do, your files will be safely copied.

n

ntKeep in mind that you should not close the Open dialog box or Notepad until all the files are copied

n

ntWhat’s your take?

n

ntDo you think that being able to edit the registry and backup files from the Windows 8 Recovery Drive Command Prompt are valuable tricks? As always, if you have comments or information to share about this topic, please take a moment to drop by the TechRepublic Community Forums and let us hear from you.

n

ntAlso read:

n

    nt

  • nttQuick Tip: Invoke god mode to take control of settings in Windows 8
  • nt

  • nttQuick Tip: Make Windows 8 File Explorer launch in Computer view
  • nt

  • nttQuick Tip: Finding and using the new Windows 8 Startup tab
  • n

n

ntCredit: Images by Greg Shultz for TechRepublic

  • Microsoft
  • Account Information

    Share with Your Friends

    Access the Command Prompt from Windows 8 Recovery Drive

    Your email has been sent

Share: Access the Command Prompt from Windows 8 Recovery Drive
Image of Greg Shultz
By Greg Shultz
My first computer was a Kaypro 16 \"luggable\" running MS-DOS 2.11 which I obtained while studying computer science in 1986. After two years, I discovered that I had a knack for writing documentation and shifted my focus over to technical writing.
  • Account Information

    Contact Greg Shultz

    Your message has been sent

  • |
  • See all of Greg's content

Daily Tech Insider

If you can only read one tech story a day, this is it.

TechRepublic TechRepublic
  • TechRepublic on Facebook
  • TechRepublic on X
  • TechRepublic on LinkedIn
  • TechRepublic on YouTube
  • TechRepublic on Pinterest
  • TechRepublic RSS
Services
  • About Us
  • Newsletters
  • RSS Feeds
  • Site Map
  • Site Help & Feedback
  • FAQ
  • Advertise
  • Do Not Sell My Information
  • Careers
Explore
  • Downloads
  • TechRepublic Forums
  • Meet the Team
  • TechRepublic Academy
  • TechRepublic Premium
  • Resource Library
  • Photos
  • Videos
  • Editorial Policy
  • Legal Terms
  • Privacy Policy
© 2025 TechnologyAdvice. All rights reserved.
CLOSE

Create a TechRepublic Account

Get the web's best business technology news, tutorials, reviews, trends, and analysis—in your inbox. Let's start with the basics.

Already registered? Sign In
Use Facebook
Use Linkedin

* - indicates required fields

CLOSE

Sign in to TechRepublic

Not a member? Create an account
Use Facebook
Use Linkedin

Lost your password? Request a new password

CLOSE

Reset Password

Please enter your email adress. You will receive an email message with instructions on how to reset your password.

Check your email for a password reset link. If you didn't receive an email don't forgot to check your spam folder, otherwise contact support.

Back to login
1 Finish Profile
2 Newsletter Preferences
CLOSE

Welcome. Tell us a little bit about you.

This will help us provide you with customized content.

No thanks, continue without
1 Finish Profile
2 Newsletter Preferences
CLOSE

Want to receive more TechRepublic news?

Newsletter Name
Subscribe
Daily Tech Insider
Daily Tech Insider AU
TechRepublic UK
TechRepublic News and Special Offers
TechRepublic News and Special Offers International
Executive Briefing
Innovation Insider
Project Management Insider
Microsoft Weekly
Cloud Insider
Data Insider
Developer Insider
TechRepublic Premium
Apple Weekly
Cybersecurity Insider
Google Weekly
Toggle All
No thanks, continue without

You're All Set

Thanks for signing up! Keep an eye out for a confirmation email from our team. To ensure any newsletters you subscribed to hit your inbox, make sure to add [email protected] to your contacts list.

Back to Home Page
×