📜 VBScript (WSH)

Get System Drivers Report (VBScript)

Queries Win32_SystemDriver via WMI and prints System Drivers to the console — no PowerShell required.

By WindowsScripting.com · 965 B
GetSystemDriverReport.vbs
' ============================================================
' GetSystemDriverReport.vbs
'
' Reports System Drivers via WMI (Win32_SystemDriver).
'
' Usage: cscript GetSystemDriverReport.vbs
' ============================================================

Option Explicit

Dim objWMIService, colItems, objItem, strOutput

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("SELECT Name, DisplayName, State, PathName FROM Win32_SystemDriver")

strOutput = ""
For Each objItem In colItems
    strOutput = strOutput & "Name: " & objItem.Name & vbCrLf
    strOutput = strOutput & "DisplayName: " & objItem.DisplayName & vbCrLf
    strOutput = strOutput & "State: " & objItem.State & vbCrLf
    strOutput = strOutput & "PathName: " & objItem.PathName & vbCrLf
    strOutput = strOutput & String(40, "-") & vbCrLf
Next

If strOutput = "" Then
    WScript.Echo "No System Drivers found."
Else
    WScript.Echo strOutput
End If