You cannot reliably update most Windows drivers from Command Prompt alone. The practical command-line path is to install a local driver package with pnputil, and that only works when you already have the correct files. Use it for a known INF package, not for discovering, downloading, or fixing every driver automatically.

Adding local driver packages with pnputil

Yes, but only in a narrow way. Command Prompt opens cmd.exe, and by itself it does not search for better drivers or pull them from the internet. The Microsoft-supported command-line path is to add a local driver package with pnputil when you already have the vendor files, usually an .inf plus its companion files. (Microsoft Learn)

What you'll need

  • Command Prompt (cmd.exe), opened from Search or Run.
  • Run as administrator for system-level driver installation.
  • A local driver package on your PC usually includes the correct .inf file.
  • An .inf file for the driver package.
  • Optional: the device hardware ID or model name so you can match the right package.

Open Command Prompt from Win + R, type cmd, then press Enter. On Windows 11, search for Command Prompt from the taskbar search box or Start menu. On Windows 10, you can also open it from the taskbar Power User menu after right-clicking the Windows icon, depending on your settings. On Windows 8, use the Start screen search area. (Wikihow)

Install a local driver package

  1. Open an elevated prompt. Right-click Command Prompt and choose Run as administrator. Many driver installs need admin rights because they change system devices and the driver store.
  2. Go to the package folder. Use cd to move to the directory that contains the driver files, or use the full path in the next command. Keep the package together so pnputil can find the .inf file and any companion files.
  3. Add the driver package. Run pnputil /add-driver "C:\Path\To\Driver\driver.inf" /install. If the folder contains several packages, use pnputil /add-driver "C:\Path\To\Folder\*.inf" /subdirs /install to scan subfolders and install matching packages.
  4. Check the result. Look for a success message from pnputil and then confirm the device shows the expected driver version in Device Manager. If the device still uses the old driver, restart Windows once before trying again.

If a laptop vendor sends you a Wi-Fi package that includes netwifi.inf and matching files in one folder, pnputil /add-driver "C:\Drivers\WiFi\netwifi.inf" /install is the right path. If the same package is missing the .inf file, Command Prompt cannot install it, because Windows needs that INF to stage the driver.

📊 wikiHow says Windows 10 has a taskbar method for opening Command Prompt. Source: Wikihow.

Can you update all drivers with CMD?

Can you update all drivers with CMD?
A laptop screen shows Windows update settings with a large arrow and logo

No single built-in Command Prompt command updates every driver on a live Windows system. You can script installation of multiple local packages with pnputil, but that still depends on having each correct driver package already downloaded and unpacked. If the packages are not local, Command Prompt cannot fetch the right ones for you.

Driver update command table

Goal Required privilege Recommended Microsoft tool/command path Success signs Fallback if the package is not already local
Install one known driver package Administrator pnputil /add-driver "C:\Path\Driver.inf" /install Command reports the driver was added and installed; the device uses the new version Download the vendor package first, then rerun pnputil
Install several local driver packages Administrator pnputil /add-driver "C:\Drivers\*.inf" /subdirs /install Multiple packages are staged or installed without missing-file errors Extract the vendor archive so the .inf files are available locally
Reinstall a broken device driver from an INF Administrator pnputil with the correct .inf, then restart if Windows asks Device returns from error state and loads the expected driver Use Device Manager to remove the device, then install the local package again
Update drivers when you do not already have the package Administrator for many repair tasks Windows Update or Device Manager Windows finds a signed match or offers a newer package Get the driver from the PC maker or device maker, then use pnputil
Try to update everything at once Administrator No universal Command Prompt command Not applicable Use vendor driver bundles one package at a time, or Windows Update for supported devices

A common first-timer mistake is pointing pnputil at a ZIP file. That fails because Windows needs the extracted driver package, not the archive itself. Extract the download first, confirm the .inf file is present, and then run the install command from an elevated prompt.

Command Prompt opening paths

  • Run dialog: press Win + R, type cmd, press Enter.
  • Search: type cmd or Command Prompt in Windows Search and open the result.
  • Windows 10 Power User menu: right-click the Windows icon on the taskbar and choose Command Prompt if it appears there.
  • Windows 11 Search: use the taskbar search box or magnifying glass icon, then launch Command Prompt from results.
  • Windows 8 Start screen search: use the top-right magnifying glass search control and search for Command Prompt.

When CMD cannot help

Command Prompt stops being useful when you do not already have the correct local package, when the driver is unsigned or blocked, or when the device needs a newer match that Windows has to find for you. In those cases, the fallback is usually Windows Update, the device maker’s package, or Device Manager to stage the correct driver.

If that didn't work, try this next

  1. Confirm the INF exists. Open the folder and look for a real .inf file. If the package only contains an installer EXE, Command Prompt cannot install it with pnputil unless the vendor also provides an extracted driver package.
  2. Check signature and block status. If Windows refuses the package, it may be unsigned, blocked by policy, or not meant for your version of Windows. Use the vendor’s current package and match the exact device model before trying again.
  3. Use Windows Update or Device Manager. Go to Settings > Windows Update and check for updates, or open Device Manager, right-click the device, and choose the driver update path there. Those routes are better when you do not have the package locally.

Say your audio device shows a warning icon after a reinstall. If the vendor package includes only an EXE, Command Prompt is the wrong tool for that package. If the vendor also provides extracted INF files, pnputil can install them; if not, Device Manager or Windows Update is the safer fallback.

Prevention: keep a folder of extracted driver packages for the exact PC model and Windows version. That makes future command-line installs much simpler, and it avoids hunting for the same INF files after a device fails.

Keep reading

Frequently asked questions

How do I install drivers from command prompt?

Use an elevated prompt and the INF file, not the ZIP or EXE. The basic command is pnputil /add-driver "C:\Path\Driver.inf" /install. If the package contains multiple subfolders, include /subdirs so Windows finds all available INF files.

Can I update drivers from Command Prompt in Windows 11?

Yes, but only with local driver packages and administrative rights. Windows 11 can still open Command Prompt from Search or the Run dialog, then pnputil can stage and install the driver. It will not fetch missing drivers for you, and it will not replace every device driver automatically.

What command opens Command Prompt as administrator?

There is no single typed command that always opens an elevated prompt from an unprivileged window. The standard path is to search for Command Prompt, then choose Run as administrator, or right-click the result and open it in elevated mode. That is the permission level needed for driver installs.

Is Command Prompt different from PowerShell for driver installs?

Yes. Windows PowerShell is similar to Command Prompt, but it is not the same shell. Both can launch Microsoft tools, including pnputil, yet PowerShell does not change the driver-install rules. The package still needs a valid INF and administrator rights.