Skip to content

Instantly share code, notes, and snippets.

@chrisbrownie
Created September 19, 2017 06:54
Show Gist options
  • Save chrisbrownie/dded5da5cbb69dc5f37c9b603797830d to your computer and use it in GitHub Desktop.
Save chrisbrownie/dded5da5cbb69dc5f37c9b603797830d to your computer and use it in GitHub Desktop.
Installs Windows drivers from a folder
Get-ChildItem "C:\mydrivers\" -Recurse -Filter "*.inf" |
ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install }
@andrew-azarov
Copy link

pnputil.exe -i -a instead of /add-driver /install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment