The Windows command prompt is a built-in Windows utility that allows users to enter computer commands to perform tasks or open applications without using the Windows graphical user interface. You can open the CMD prompt in Windows 10 to troubleshoot and solve problems on your Windows 10 computer.
In particular, if your computer/laptop won’t turn on, running Windows 10 at the command prompt will be very useful for troubleshooting Windows 10 problems later on.
This guide from IR Cache provides step-by-step instructions on how to open the command line when you start Windows 10. Learn how to open the Windows 10 command line at startup and how to troubleshoot Windows 10 command line issues.
Why won’t my Windows 10 computer start up?
The process of starting Windows 10 is pretty straightforward. When your computer boots, it loads the BIOS or UEFI firmware, which performs a short series of checks on your hardware called a power-on self-test (POST).
The BIOS then scans the master boot record on your hard drive, which loads a large WINLOAD.EXE file into main memory. It starts the boot process by loading NTOSKRNL.EXE (NT kernel, the Windows kernel) and HAL (hardware abstraction layer). Windows 10 then performs tasks such as resetting hardware settings such as mouse and keyboard, reading the Windows registry and user profile.
If you see a black screen with gray text “Windows Boot Manager” and an error message like “Status: 0xc0000605 Info: A component of the operating system has expired”, it means that something went wrong with WINLOAD.EXE.
How to open the command line when Windows 10 doesn’t start
Using the key combination Shift + F10
This is the best way to open the command line at startup, and that’s why we will show it first. It can be run immediately after BIOS POST and works regardless of the version of Windows installed on your computer. It works even if you do not have Windows or any other operating system installed on your computer.
Here’s how you should proceed:
- First, use Windows installation media (DVD, USB drive, etc.) to boot your computer or device.
- It doesn’t matter whether the installation media is for Windows 10, Windows 7, or Windows 8.1: either one will work.
- When the Windows installation wizard appears, press Shift + F10 on your keyboard.
- This key combination opens the pre-boot command prompt.
- If you don’t already have a Windows installation DVD or USB drive handy, you’ll need to learn how to create your own Windows installation disk.
Use a USB key or Windows installation DVD
- Start your computer and on the BIOS boot menu, select the disk containing the Windows 10 (or 8.1) installation files as your boot device.
- Wait for Windows Setup to load and select the language and keyboard you want to use.
- Then click Next.
- Don’t click Install Now. Instead, click or tap the “Restore Computer” button in the lower-left corner of the wizard or press R on your keyboard.
- You’ll be prompted to choose your next steps. Select Troubleshooting.
- Several additional options will appear. Click or tap Command Prompt here.
- The command line (cmd.exe) will boot and you can use it to repair a broken Windows system or for any other action.
Using a USB repair drive
- Plugin the drive, boot your computer and select the removable repair drive as the boot device in the BIOS boot menu.
- When the repair drive boots, you will first be prompted to select a keyboard layout. Select the one you want to use.
- You can then choose from several options. Select Troubleshooting.
- In the list of advanced options, click or tap Command Prompt.
- The command line will now load and you can use it.
Once you have access to the Command Prompt, you can run almost any utility it supports. This includes scanning your disk, scanning your system files, and more.
If something goes wrong and you need to reinstall, you can use the command line to copy/move important files from your desktop to another location or drive. It takes some getting used to since everything is done with commands, but mostly you will use commands to move between folders and copy/paste files.
Frequently Asked Questions
- Reboot your Windows 10 computer.
- Temporarily disable antivirus software.
- Change the PATH environment variable settings.
- Create a new user account.
- Run the SFC using Windows PowerShell.
- Create a shortcut for the CMD application.
- Make sure the command line is running in safe mode.
- Perform a system restore.
Insert the Windows installation media and boot your computer from it. Once the computer boots and the Windows Setup window appears, press Shift + F10 on your keyboard. A command prompt window will open.
- Click on Startup Repair.
- Click on System Restore.
- Select your username.
- Type "cmd" in the main search box.
- Right-click on "Command Prompt" and select "Run as administrator".
- Type "sfc / scan now" at the command prompt and press Enter.
- Click on the download link at the bottom of the screen.
- Click Accept.
You can press Shift + F10 to open the command line during Startup Repair and run this command. I'm assuming you have a Windows 7 startup disk. It is then very easy to reboot the system.