如果驱动程序导致您的计算机出现问题,您可以使用Windows 11中的命令提示符(Command Prompt)通过恢复环境(Recovery Environment)卸载该驱动程序。您无需打开设备管理器(Device Manager)即可删除或删除Windows 11/10中的驱动程序。
有时,新安装或更新的驱动程序可能会导致许多问题,从而使您无法顺利使用计算机。如果您的计算机滞后很多,并且您无法打开设备管理器(Device Manager)来卸载该驱动程序,您可以借助命令提示符(Command Prompt)来完成同样的事情。
要使用此方法,您需要将计算机启动到 恢复环境 ,然后使用 remove-driverparameter
删除有故障的驱动程序。有两种方法可以将您的 PC 引导至Windows RE。您可以使用Windows 设置(Windows Settings)方法或创建可启动的Windows 11 USB驱动器。
如果您已 下载 Windows 11 ISO(downloaded Windows 11 ISO),则可以按照此方法 创建可启动 USB 驱动器(create a bootable USB drive)。然后,您可以使用此可启动闪存驱动器打开Windows RE。为了您的信息,您需要单击 修复您的计算机(Repair your computer )(Repair your computer )选项。完成此操作后,其余选项与以下相同。当您无法登录您的用户帐户或您的计算机经常死机时,此方法很方便。
如何在Windows 11中使用(Windows 11)命令提示符卸载驱动程序(Command Prompt)
要在Windows 11中使用(Windows 11)命令提示符(Command Prompt)卸载驱动程序,请执行以下步骤:
- Press Win+I打开Windows 设置(Windows Settings)。
- 转到 System > Recovery。
- 单击 立即重新启动 (Restart now )按钮。
- 选择 Troubleshoot > Advanced options > Command Prompt。
- 在命令提示符中输入 c :。
- 输入这个命令:dism /image:c:\ /get-drivers
- 记下 Published Name。
- 输入这个命令:dism /image:c:\ /remove-driver /driver:oem0.inf
如果您可以登录您的用户帐户,但由于任何原因无法打开设备管理器,您可以使用(Device Manager)Windows 设置(Windows Settings)将您的 PC 启动到Windows 恢复环境(Windows Recovery Environment)。为此,按 Win+I 打开 Windows 设置并转到 System > Recovery。
在这里您可以找到一个名为“ 立即重新启动(Restart now)”的选项,它与 高级启动选项(Advanced startup options)(Advanced startup options)相关联。您需要单击此按钮。
您的计算机将启动并在屏幕上显示一些选项。您需要选择 疑难解答(Troubleshoot) 选项,然后单击 Advanced options > Command Prompt。
默认情况下,命令提示符(Command Prompt)打开时提到 X 驱动器。您需要切换到安装系统的驱动器。在大多数情况下,它是 C 盘。如果和你的一样,可以输入以下命令:
C:
要确认这一点,您可以输入 dir 命令来检查列表是否包含 Windows 文件夹。如果是,你可以继续。否则,您需要根据您的Windows安装更改驱动器。
接下来,您需要找到已安装的驱动程序列表。为此,输入以下命令:
dism /image:c:\ /get-drivers
不要忘记 用原始系统驱动器替换c 。
输入此命令后,它会显示所有已安装驱动程序的列表。您可以找到各种信息,但需要的 是已发布的名称 (Published Name )。您需要记下故障驱动程序的 发布名称(Published Name) 并输入以下命令:
dism /image:c:\ /remove-driver /driver:oem0.inf
将 oem0.inf 替换为您要卸载的驱动程序的原始 发布名称 。(Published Name )
如果一切顺利,您将收到一条消息 “操作已成功完成”(The operation completed successfully)。
之后,您可以重复相同的步骤来删除其他驱动程序。如果要关闭此窗口,可以单击红色十字按钮并重新启动计算机。
如何在命令提示符(Command Prompt)中检查我的驱动程序?
要在命令提示符(Command Prompt)中检查您的驱动程序,您需要使用dism /image:e: /get-driverinfo /driver:oem0.inf
命令,其中 oem0.inf 是驱动程序的 发布名称 (Published Name )。您可以在Windows 恢复环境(Windows Recovery Environment)中执行此操作。
如何在不打开Windows的情况下删除驱动程序?
要在不打开Windows的情况下删除驱动程序,您可以借助命令提示符(Command Prompt)和Windows RE。remove-driver 参数允许您从(remove-driver )Windows 恢复环境(Windows Recovery Environment)中 删除或卸载驱动程序。
希望本指南帮助您使用命令提示符(Command Prompt)删除驱动程序。
How to uninstall driver using Command Prompt in Windows 11
If a driver is causing isѕues on your computer, you can uninstall that driver using Command Prompt in Windows 11 via the Recovery Environment. You do not need to open the Deviсe Manager to remove or dеlete a driver in Windows 11/10.
There could be times when a newly installed or updated driver might cause numerous problems, preventing you from using your computer smoothly. If your computer is lagging a lot, and you cannot open the Device Manager to uninstall that driver, you can take the help of Command Prompt to get the same thing done.
To use this method, you need to boot your computer into Recovery Environment and then use the remove-driverparameter
to remove the faulty driver. There are two ways to boot your PC into Windows RE. You can use the Windows Settings method or create a bootable Windows 11 USB drive.
If you have downloaded Windows 11 ISO, you can follow this method to create a bootable USB drive. Then, you can use this bootable flash drive to open the Windows RE. For your information, you need to click on the Repair your computer option. Once you do that, the rest of the options are the same as below. This method is handy when you cannot log in to your user account or your computer freezes frequently.
How to uninstall driver using Command Prompt in Windows 11
To uninstall driver using Command Prompt in Windows 11, follow these steps:
- Press Win+I to open Windows Settings.
- Go to System > Recovery.
- Click on the Restart now button.
- Choose Troubleshoot > Advanced options > Command Prompt.
- Enter c: in the Command Prompt.
- Enter this command: dism /image:c:\ /get-drivers
- Note down the Published Name.
- Enter this command: dism /image:c:\ /remove-driver /driver:oem0.inf
If you can log into your user account but cannot open the Device Manager due to any reason, you can use the Windows Settings to boot your PC into Windows Recovery Environment. For that, press Win+I to open Windows Settings and go to System > Recovery.
Here you can find an option called Restart now, which is associated with Advanced startup options. You need to click on this button.
Your computer will boot and show a few options on your screen. You need to select the Troubleshoot option and click on the Advanced options > Command Prompt.
By default, Command Prompt opens with X drive mentioned. You need to switch to the drive where your system is installed. In most cases, it is the C drive. If it is the same as yours, you can enter the following command:
C:
To confirm that, you can enter the dir command to check if the list contains the Windows folder or not. If yes, you can go ahead. Otherwise, you need to change the drive as per your Windows installation.
Next, you need to find the installed driver list. For that, enter this command:
dism /image:c:\ /get-drivers
Don’t forget to replace c with the original system drive.
After entering this command, it displays a list of all the installed drivers. You can find various information, but the Published Name is what is needed. You need to note down the faulty driver’s Published Name and enter this command:
dism /image:c:\ /remove-driver /driver:oem0.inf
Replace oem0.inf with the original Published Name of the driver you want to uninstall.
If everything goes successfully, you will get a message saying The operation completed successfully.
After that, you can repeat the same steps to remove other drivers. If you want to close this window, you can click the red cross button and restart your computer.
How do I check my drivers in Command Prompt?
To check your drivers in Command Prompt, you need to use dism /image:e:\ /get-driverinfo /driver:oem0.inf
command, where oem0.inf is the Published Name of the driver. You can do that in the Windows Recovery Environment.
How do I remove drivers without opening Windows?
To remove drivers without opening Windows, you can take the help of Command Prompt and Windows RE. The remove-driver parameter lets you remove or uninstall drivers from the Windows Recovery Environment.
Hope this guide helped you remove drivers using Command Prompt.