Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Update Drivers via CMD in Windows

Target Audience: Windows users who prefer using command-line interfaces for system management or those in technical support roles.


Introduction: Keeping drivers updated is crucial for ensuring the proper performance of devices connected to your Windows computer. While many people are accustomed to using graphical interfaces to update drivers, it is possible to perform this process efficiently through the Command Prompt (CMD). In this article, we will provide script examples that can be executed in CMD to update drivers on Windows.


Step-by-Step:
1. Updating Drivers Using Windows Update:



  • Open Command Prompt with administrator privileges (right-click the Start menu and select "Command Prompt (Admin)").

  • Type the following command and press Enter: wuauclt.exe /detectnow

  • Wait for Windows Update to check for available updates for your drivers.

  • If updates are available, Windows Update will download and install them automatically.


2. Updating Drivers Using DISM (Deployment Image Servicing and Management):



  • Open Command Prompt as Administrator.

  • Right-click the Start menu and choose "Command Prompt (Admin)" or "Windows PowerShell (Admin)", depending on your version of Windows.

  • To list all drivers installed on the system, use the command: dism /online /get-drivers

  • To add a specific driver from a file (.inf), use the command: dism /online /add-driver /driver:c:\path\to\driver.inf

  • To add all drivers in a directory, use: dism /online /add-driver /driver:c:\directory\with\drivers /recurse

  • After installing the driver, it’s a good practice to check if it has been added correctly with: dism /online /get-drivers | findstr "driver_name"


Examples:
Check Installed Drivers:



  • Command: dism /online /get-drivers


Add a Specific Driver:



  • Command: dism /online /add-driver /driver:c:\path\to\driver.inf


Verify Driver Installation:



  • Command: dism /online /get-drivers | findstr "driver_name"


Note: It is important to ensure that the drivers are from reliable sources and are compatible with your hardware and version of Windows to avoid system issues.


Conclusion: Updating drivers in Windows is an essential task to ensure the proper functioning of the devices connected to your computer. While there are various ways to perform this task, using CMD can be a quick and efficient option. In this article, we presented examples of scripts that can be executed in Command Prompt to update drivers using Windows Update and DISM. Try these options to keep your drivers up to date and ensure optimal performance of your computer.


To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.