Tag: wmi

750 script(s) tagged “wmi”

📊 VBA (Excel)

Load System Drivers into Excel via WMI

Queries Win32_SystemDriver via GetObject("winmgmts:") and dumps every System Drivers row straight onto the active works…

🖥️ Batch (CMD)

Export Motherboard Info to CSV (Batch)

Uses wmic to export Motherboard Info (Win32_BaseBoard) to a timestamped CSV file.

🧬 WQL / PowerShell

Win32_Process: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_Process via Register-CimIndicationEvent — real WQL event query sy…

🧬 WQL / PowerShell

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…

📄 JScript (WSH)

Get Pointing Devices Report (JScript)

Queries Win32_PointingDevice via WMI and prints Pointing Devices to the console — JScript, VBScript's WSH sibling langu…

🟣 C# / .NET 6+

Backup Motherboard Info to JSON (C#)

Snapshots Motherboard Info (Win32_BaseBoard) to a timestamped JSON file via System.Management and System.Text.Json.

🧬 WQL / PowerShell

Win32_Service: Services (WQL)

A minimal WQL reference query against Win32_Service — the raw SELECT statement plus a one-line runner, useful for learn…

🧬 WQL / PowerShell

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…

🖥️ Batch (CMD)

Get Signed Drivers Report (Batch)

Uses wmic to list Signed Drivers (Win32_PnPSignedDriver) straight from the command line.

🟣 C# / .NET 6+

Backup Processes to JSON (C#)

Snapshots Processes (Win32_Process) to a timestamped JSON file via System.Management and System.Text.Json.

⚡ PowerShell 5.1+

Get Network Adapters Report

Queries Win32_NetworkAdapter via WMI and reports Network Adapters in a formatted table, with an optional CSV export.

📊 VBA (Excel)

Load Environment Variables into Excel via WMI

Queries Win32_Environment via GetObject("winmgmts:") and dumps every Environment Variables row straight onto the active…