Created
September 19, 2017 06:54
-
-
Save chrisbrownie/dded5da5cbb69dc5f37c9b603797830d to your computer and use it in GitHub Desktop.
Installs Windows drivers from a folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem "C:\mydrivers\" -Recurse -Filter "*.inf" | | |
ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pnputil.exe -i -a instead of /add-driver /install