⚡ PowerShell 5.1+
Get Signed Drivers Report
Queries Win32_PnPSignedDriver via WMI and reports Signed Drivers in a formatted table, with an optional CSV export.
Get-PnPSignedDriverReport.ps1
<#
.SYNOPSIS
Reports Signed Drivers on this computer via WMI (Win32_PnPSignedDriver).
.DESCRIPTION
Queries Win32_PnPSignedDriver and displays DeviceName, DriverVersion, Manufacturer, DriverDate for each item found.
Use -ExportPath to also save the results to a CSV file.
.PARAMETER ExportPath
Optional path to a .csv file to write the results to.
.EXAMPLE
.\Get-PnPSignedDriverReport.ps1
.EXAMPLE
.\Get-PnPSignedDriverReport.ps1 -ExportPath C:\Reports\pnpsigneddriver.csv
#>
[CmdletBinding()]
param(
[string]$ExportPath
)
$items = Get-CimInstance -ClassName Win32_PnPSignedDriver | Select-Object DeviceName, DriverVersion, Manufacturer, DriverDate
if (-not $items) {
Write-Host "No Signed Drivers found." -ForegroundColor Yellow
return
}
$items | Format-Table -AutoSize
if ($ExportPath) {
$items | Export-Csv -Path $ExportPath -NoTypeInformation -Encoding UTF8
Write-Host "`nExported to $ExportPath" -ForegroundColor Cyan
}