命令提示符(Command Prompt)是一个功能强大的工具,可用于各种目的,包括故障排除和修复Windows问题。如果Windows(Windows)正常工作,启动它很容易,但是当Windows拒绝加载时你会怎么做?您如何“从BIOS ”“启动”到(BIOS)命令提示符 (cmd.exe)(Command Prompt (cmd.exe))以解决您遇到的问题?此外,如何在Windows 安装程序中打开(Windows Setup)CMD?阅读本教程,您将了解在安装Windows时、UEFI/BIOS POST过程之后或Windows时打开(Windows)CMD的三种不同方法(CMD)不启动:
1. 如何在Windows 安装(Windows Setup)过程中使用Shift + F10键盘快捷键打开CMD
在我们看来,这是在启动时打开命令提示符(Command Prompt)(Command Prompt)的最佳方法,这就是我们首先展示它的原因。您可以在UEFI/BIOS POST之后立即执行此操作,并且无论您在 PC 上安装了什么Windows版本,它都可以正常工作。(Windows)如果您的计算机上没有安装Windows或任何其他操作系统,它甚至可以工作。这是您需要做的:
首先,使用Windows 安装(Windows installation)USB 记忆棒或 DVD启动您的计算机(boot your computer)或设备。安装介质是用于Windows 11还是 Windows 10 都没有关系:任何一个都一样。
(Boot)使用某些Windows安装介质(USB、DVD等)启动您的 PC
然后,要在Windows Setup中打开CMD ,在安装向导出现时同时按键盘上的Shift + F10此键盘快捷键会在启动前打开命令提示符。(Command Prompt)
Press Shift + F10以在启动时打开命令提示符(Command Prompt)
注意:(NOTE: )如果您手头没有Windows安装DVD或USB记忆棒,请阅读这些教程以了解如何创建自己的Windows安装驱动器:如何下载 Windows 和 Office ISO 文件(所有版本)(How to download Windows and Office ISO files (all versions))以及How to use the Windows USB/DVD Download Tool。
2. 如何从Windows安装U(USB)盘或 DVD启动到命令提示符(Command Prompt)
这种“从BIOS ”打开命令提示符(Command Prompt)的方法与前一种方法类似,不同之处在于它使用的点击次数多于按键。🙂
启动您的计算机,然后从UEFI/BIOS boot menu中选择您拥有Windows 11或 Windows 10 安装文件的驱动器作为启动设备。等待(Wait)Windows 安装程序(Windows Setup)加载,如果出现提示,请选择语言和键盘,然后按Next。不要单击/点击立即安装(Install now)。相反,单击或点击向导左下角的“修复计算机”("Repair your computer")或按键盘上的R。
选择修复您的计算机
您被要求选择如何继续的选项。选择疑难解答(Troubleshoot)。
疑难解答选项
您会看到几个高级选项,但我们只对命令提示符(Command Prompt)选项感兴趣:单击或点击它以在启动时进入CMD 。
在启动 Windows 之前打开命令提示符(Command Prompt)
命令提示符 (cmd.exe)(Command Prompt (cmd.exe))已加载,您可以使用它来修复无法正常工作的Windows系统或执行任何其他操作。
启动前打开CMD
我们现在知道如何在安装 Windows 时以两种不同的方式打开CMD 。接下来,让我们看看如何使用Windows修复驱动器“从 BIOS”进入命令提示符。(Command Prompt )
3.当您的 PC 无法启动时,如何使用USB修复驱动器启动到Windows中的(Windows)命令提示符(Command Prompt)
如果您有Windows 11或 Windows 10 恢复驱动器,则可以使用它在启动时启动命令提示符(Command Prompt)。插入(Insert)驱动器,然后启动计算机并使用UEFI/BIOS boot menu选择可移动修复驱动器(removable repair drive)作为引导设备。当恢复驱动器加载时,它首先会要求您选择键盘布局。选择您喜欢使用的那个。
选择键盘布局
然后,您可以选择多个选项之一。选择疑难解答(Troubleshoot)。
选择疑难解答选项
现在,要启动到Command Prompt,在Advanced options列表中,单击或点击Command Prompt。
启动前启动命令提示符
命令提示符(Command Prompt)会立即加载,您可以根据需要开始使用它。
我已经设法在Windows启动时启动到(Windows)命令提示符(Command Prompt)。下一步是什么?
在您设法“从 BIOS”进入命令提示符(Command Prompt)后,您可以使用简单的命令(simple commands)和更高级的工具(例如diskpart或bootrec)来修复系统的分区、引导记录、写入新的引导扇区(如果需要),或者重建引导配置数据(Boot Configuration Data)。
如果这些是您必须执行的操作才能让您的 PC 重新启动并运行,这些教程可能会让您感兴趣:如何使用 diskpart、chkdsk、碎片整理和其他与磁盘相关的命令(How to use diskpart, chkdsk, defrag, and other disk-related commands)以及如何使用命令提示符来解决您的问题电脑的开机记录(How to use the Command Prompt to fix issues with your PC's boot records)。
为什么要引导到命令提示符(Command Prompt)?
希望当您遇到 Windows 计算机和设备问题时,本指南对您有所帮助。此外,如果您知道在 Windows 拒绝正确加载时启动命令提示符(Command Prompt)的其他方法,请不要犹豫,使用下面的评论分享它们。
How to open Command Prompt when Windows doesn't boot (3 ways)
Thе Command Prompt is a powerful tool that you can use for various purposes, including troubleshooting and fixing problems with Windows. Starting it is easy if Windows is working correctly, but what do you do when Windows refuses to load? How do you "boot" to Command Prompt (cmd.exe) "from BIOS" to fix the issues that you’re having? Moreover, how do you open CMD in Windows Setup? Read this tutorial, and you’ll learn three different ways to open CMD while installing Windows, right after the UEFI/BIOS POST process or when Windows doesn’t boot:
1. How to open CMD during Windows Setup using the Shift + F10 keyboard shortcut
In our opinion, this is the best method of opening Command Prompt at boot, and that's why we're showing it first. You can do it immediately after UEFI/BIOS POST, and it works no matter what Windows version you have installed on your PC. It even works if you don't have Windows or any other operating system installed on your computer. Here's what you need to do:
First, use a Windows installation USB memory stick or DVD to boot your computer or device. It doesn't matter whether the installation media is for Windows 11 or Windows 10: either one works the same.
Boot your PC using some Windows installation media (USB, DVD, etc.)
Then, to open CMD in Windows Setup, simultaneously press the Shift + F10 keys on your keyboard when the installation wizard shows up. This keyboard shortcut opens Command Prompt before boot.
Press Shift + F10 on the keyboard to open Command Prompt on boot
NOTE: If you don't already have a Windows setup DVD or USB stick at hand, read these tutorials to learn how to create your own Windows setup drive: How to download Windows and Office ISO files (all versions) and How to use the Windows USB/DVD Download Tool.
2. How to boot to Command Prompt from a Windows installation USB memory stick or DVD
This method to open Command Prompt "from BIOS" is similar to the previous one, except it uses more clicks than keys. 🙂
Start your computer and, from the UEFI/BIOS boot menu, choose the drive where you have the Windows 11 or Windows 10 setup files as the boot device. Wait for the Windows Setup to load, select the language and keyboard if you’re prompted, and then press Next. Don't click/tap on Install now. Instead, click or tap "Repair your computer" on the bottom-left corner of the wizard or press R on your keyboard.
Choosing Repair your computer
You are asked to choose an option on how to continue. Choose Troubleshoot.
The Troubleshoot option
You are shown several advanced options, but only the Command Prompt option interests us: click or tap on it to get to CMD at boot.
Open Command Prompt before booting Windows
The Command Prompt (cmd.exe) is loaded, and you can use it to repair your non-working Windows system or do anything else you wish.
CMD open before startup
We now know how to open CMD while installing Windows in two different ways. Next, let’s see how to get to Command Prompt “from BIOS” using a Windows repair drive.
3. How to boot to Command Prompt in Windows when your PC doesn't boot, using a USB repair drive
If you have a Windows 11 or Windows 10 recovery drive, you can use it to start the Command Prompt at boot. Insert the drive, then start your computer and use the UEFI/BIOS boot menu to select the removable repair drive as the boot device. When the recovery drive loads, it first asks you to choose the keyboard layout. Select the one you prefer using.
Choosing a keyboard layout
Then, you can choose one of several options. Select Troubleshoot.
Choose the Troubleshoot option
Now, to boot to Command Prompt, in the list of Advanced options, click or tap on Command Prompt.
Launch Command Prompt before boot
The Command Prompt is immediately loaded, and you can start using it for whatever you need.
I've managed to boot to Command Prompt at Windows startup. What's next?
After you've managed to get to the Command Prompt “from BIOS,” you can use simple commands and more advanced tools such as diskpart or bootrec to repair your system's partitions, boot records, write a new boot sector (if needed), or rebuild the Boot Configuration Data.
If these are the things you must do to get your PC up and running again, these tutorials might interest you: How to use diskpart, chkdsk, defrag, and other disk-related commands and How to use the Command Prompt to fix issues with your PC's boot records.
Why did you want to boot to Command Prompt?
Hopefully, this guide was helpful to you when you've encountered issues with your Windows computers and devices. Also, if you know other ways to start the Command Prompt when Windows refuses to load correctly, don't hesitate to share them using the comments below.