Tag: wmi

750 script(s) tagged “wmi”

📊 VBA (Excel)

Load Physical Disk Drives into Excel via WMI

Queries Win32_DiskDrive via GetObject("winmgmts:") and dumps every Physical Disk Drives row straight onto the active wo…

🐍 Python 3.10+

Export Pointing Devices to CSV (Python)

Exports Pointing Devices (Win32_PointingDevice) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_Product: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📄 JScript (WSH)

Get Installed Hotfixes Report (JScript)

Queries Win32_QuickFixEngineering via WMI and prints Installed Hotfixes to the console — JScript, VBScript's WSH siblin…

🖥️ Batch (CMD)

Export Page File Usage to CSV (Batch)

Uses wmic to export Page File Usage (Win32_PageFileUsage) to a timestamped CSV file.

🐍 Python 3.10+

Export USB Controllers to CSV (Python)

Exports USB Controllers (Win32_USBController) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_Processor: Querying Processor Info Remotely (CIM Session)

Runs the same Win32_Processor WQL query against a remote computer over a CIM session — the modern, WinRM-based replacem…

🧬 WQL / PowerShell

Win32_UserAccount: Local User Accounts (WQL)

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

🖥️ Batch (CMD)

Get Printers Report (Batch)

Uses wmic to list Printers (Win32_Printer) straight from the command line.

🧬 WQL / PowerShell

Win32_UserAccount: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_UserAccount via Register-CimIndicationEvent — real WQL event quer…

⚡ PowerShell 5.1+

Watch Pointing Devices for Changes

Polls Win32_PointingDevice on an interval and prints a line whenever the Pointing Devices count changes — a lightweight…

📊 VBA (Excel)

Export Computer System Info to CSV via WMI (VBA)

Queries Win32_ComputerSystem via WMI and writes every Computer System Info row straight to a CSV file in Documents, usi…