Files
cheatsheet-tldr/tldr/windows/pnputil
2025-11-05 00:20:34 +00:00

39 lines
910 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# pnputil
> Manage the driver store and driver packages on Windows.
> Requires an elevated Command Prompt.
> More information: <https://learn.microsoft.com/windows-hardware/drivers/devtest/pnputil-command-syntax>.
- List all installed driver packages:
`pnputil /enum-drivers`
- Install a driver package from an INF file:
`pnputil /add-driver {{path o\driver.inf}}`
- Add and install all INF files in a folder (including subdirectories):
`pnputil /add-driver {{path o older\*.inf}} /subdirs`
- Delete a driver package using its published name:
`pnputil /delete-driver {{oemXX.inf}}`
- Install a driver package using its published name:
`pnputil /add-driver {{oemXX.inf}}`
- Export all driver packages to a folder:
`pnputil /export-driver * {{path o older}}`
- List all devices:
`pnputil /enum-devices`