Hi Galen,
The discrepancy between the output of driverquery /v
and Get-WmiObject Win32_PnPSignedDriver | Select Description, DeviceName, DriverVersion
lies in their underlying mechanisms and the information they retrieve. Let’s delve into the details:
-
driverquery /v
: This command provides an extensive list of drivers, including additional details such as whether a driver is currently running. It is suitable for advanced users who require comprehensive information.
If you want a more detailed list of drivers, you can use this command:
driverquery /FO list /v
This command shows more information about each driver, such as its status (running or not).
-
Get-WmiObject Win32_PnPSignedDriver | Select Description, DeviceName, DriverVersion
: This PowerShell command retrieves information specifically from the Win32_PnPSignedDriver class. It selects and displays only the Description, DeviceName, and DriverVersion properties. The DriverVersion property contains the version number of the driver. If you want to sort the results by version, you can use a calculated property to cast the driver version as[version]
and then sort accordingly
In summary, the difference lies in the level of detail and the specific properties retrieved by each command. While driverquery /v
provides a more comprehensive list, the PowerShell command focuses on specific properties related to signed drivers.