Note: For this question, when I refer to \"Windows drivers\" I mean .inf and associated files which can otherwise be installed by right-clicking the .inf and clicking \"Inst
There is a PowerShell module named DeviceManagement, installable from the PowerShell Gallery via Install-Module
, which contains the Install-DeviceDriver
cmdlet. Example:
Install-Module -Name DeviceManagement -Force
Install-DeviceDriver -InfFilePath C:\Drivers\LAN\acmelan.inf
Get-Device | Where-Object Name -like 'ACME Network Adapter*' | Select-Object Name,DriverProvider,DriverVersion,DriverDescription,HasProblem