Tag: wmi
750 script(s) tagged “wmi”
Load System Drivers into Excel via WMI
Queries Win32_SystemDriver via GetObject("winmgmts:") and dumps every System Drivers row straight onto the active works…
Export Motherboard Info to CSV (Batch)
Uses wmic to export Motherboard Info (Win32_BaseBoard) to a timestamped CSV file.
Win32_Process: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_Process via Register-CimIndicationEvent — real WQL event query sy…
Win32_NetworkAdapterConfiguration: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Netwo…
Get Pointing Devices Report (JScript)
Queries Win32_PointingDevice via WMI and prints Pointing Devices to the console — JScript, VBScript's WSH sibling langu…
Backup Motherboard Info to JSON (C#)
Snapshots Motherboard Info (Win32_BaseBoard) to a timestamped JSON file via System.Management and System.Text.Json.
Win32_Service: Services (WQL)
A minimal WQL reference query against Win32_Service — the raw SELECT statement plus a one-line runner, useful for learn…
Win32_Group: Local Groups (WQL)
A minimal WQL reference query against Win32_Group — the raw SELECT statement plus a one-line runner, useful for learnin…
Get Signed Drivers Report (Batch)
Uses wmic to list Signed Drivers (Win32_PnPSignedDriver) straight from the command line.
Backup Processes to JSON (C#)
Snapshots Processes (Win32_Process) to a timestamped JSON file via System.Management and System.Text.Json.
Get Network Adapters Report
Queries Win32_NetworkAdapter via WMI and reports Network Adapters in a formatted table, with an optional CSV export.
Load Environment Variables into Excel via WMI
Queries Win32_Environment via GetObject("winmgmts:") and dumps every Environment Variables row straight onto the active…