How to find the device driver version using PowerShell?

PowerShellMicrosoft TechnologiesSoftware & Coding

To find the device driver version using PowerShell, we need to use the class win32_PnpSignedDriver of the WMI object. For example,

Example

Get-WmiObject win32_PnpSignedDriver

Or if you are using PowerShell core (PowerShell 6.0 or later), you can use the CIM Instance command. For example,

Get-CimInstance win32_PnpSignedDriver

To filter out the Drivers against their versions, use the below command to filter.

Example

gwmi win32_PnpSignedDriver | Select Description, DriverVersion

Output

ACPI x64-based PC                6.2.9200.16384    
UMBus Root Bus Enumerator        6.2.9200.16384    
WAN Miniport (IPv6)              6.2.9200.16384    
Composite Bus Enumerator         6.2.9200.16384    
WAN Miniport (IKEv2)             6.2.9200.16384    
WAN Miniport (SSTP)              6.2.9200.16384    
WAN Miniport (IP)                6.2.9200.16384

To search for the Specific driver with its name,

gwmi win32_PnpSignedDriver | where{$_.Description -eq "WAN Miniport (IPv6)"} | Select Description, DriverVersion

To search for the specific driver using wildcard character,

gwmi win32_PnpSignedDriver | where{$_.Description -like "Vmware*"} | Select Description, DriverVersion

To get the list of drivers on the remote computer use -ComputerName parameter in the WMI or CIM instance command as shown below.

gwmi win32_PnpSignedDriver -ComputerName Computer1
raja
Published on 08-Feb-2021 12:14:57
Advertisements