Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Keeping your drivers up to date is essential to ensure the proper performance of devices connected to your Windows computer. While most people rely on graphical interfaces to update drivers, the Command Prompt (CMD) offers a quick and efficient way to accomplish this task. In this article, we’ll explore how you can use CMD commands to update drivers in Windows.
Windows Update is the simplest and safest way to update drivers, as it automatically checks for available updates for your hardware.
Steps:
1. Open Command Prompt as Administrator:
wuauclt.exe /detectnow
3. Wait while Windows Update checks for available driver updates.
4. If updates are found, Windows Update will download and install them automatically.
DISM is a powerful tool that allows you to manage drivers directly via CMD. It’s useful for adding drivers manually or checking installed drivers.
1. Open Command Prompt as Administrator.
2. To list all installed drivers on the system, use the command:
dism /online /get-drivers
This will display a list of drivers with details such as name, provider, and publish date.
1. If you have the driver file (.inf), use the following command to install it:
dism /online /add-driver /driver:c:\path\to\driver.inf
Replace c:\path\to\driver.inf
with the full path to the driver file.
2. To add all drivers in a directory, use:
dism /online /add-driver /driver:c:\directory\with\drivers /recurse
This will install all valid drivers in the specified directory.
1. After installing the driver, verify if it was added correctly with the command:
dism /online /get-drivers | findstr "driver_name"
Replace driver_name
with the name of the driver you installed.
PnPUtil is a built-in Windows tool that allows you to install, remove, and list drivers via CMD.
1. Open Command Prompt as Administrator.
2. Use the following command to install a driver:
pnputil /add-driver c:\path\to\driver.inf
Replace c:\path\to\driver.inf
with the path to the driver file.
1. To view all installed drivers, use:
pnputil /enum-drivers
1. To remove a driver, first list the installed drivers with pnputil /enum-drivers
and note the driver name.
2. Use the following command to remove it:
pnputil /delete-driver DRIVER_NAME.inf
Replace DRIVER_NAME.inf
with the name of the driver you want to remove.
The driverquery
command allows you to list all installed drivers on the system, which is useful for identifying outdated or problematic drivers.
Steps:
1. Open Command Prompt as Administrator.
2. Type the following command:
driverquery
3. To export the list of drivers to a text file, use:
driverquery > c:\path\to\driver_list.txt
Updating drivers in Windows is a crucial task to ensure the proper functioning of devices connected to your computer. While there are several ways to accomplish this, using CMD can be a quick and efficient option. In this article, we’ve provided examples of commands to update drivers using Windows Update, DISM, PnPUtil, and Driverquery. Try these methods and keep your drivers up to date for optimal computer performance.