Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Product: Finding Associated Objects (WQL ASSOCIATORS OF)

Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Produ…

🧬 WQL / PowerShell

Win32_BIOS: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📜 VBScript (WSH)

Get USB Controllers Report to File (VBScript)

Queries Win32_USBController via WMI and writes USB Controllers to a timestamped text file, handy for scheduled logon/lo…

🟣 C# / .NET 6+

Backup Video Controllers to JSON (C#)

Snapshots Video Controllers (Win32_VideoController) to a timestamped JSON file via System.Management and System.Text.Js…

🖥️ Batch (CMD)

Export Environment Variables to CSV (Batch)

Uses wmic to export Environment Variables (Win32_Environment) to a timestamped CSV file.

🐍 Python 3.10+

Export Motherboard Info to CSV (Python)

Exports Motherboard Info (Win32_BaseBoard) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_CDROMDrive: Filtering CD/DVD Drives (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_CDROMDrive, starting from a LIKE '%' wildcard you customize with a real…

🧬 WQL / PowerShell

Win32_SoundDevice: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🖥️ Batch (CMD)

Export Computer System Info to CSV (Batch)

Uses wmic to export Computer System Info (Win32_ComputerSystem) to a timestamped CSV file.

📜 VBScript (WSH)

Get Installed Hotfixes Report (VBScript)

Queries Win32_QuickFixEngineering via WMI and prints Installed Hotfixes to the console — no PowerShell required.

📊 VBA (Excel)

Export Environment Variables to CSV via WMI (VBA)

Queries Win32_Environment via WMI and writes every Environment Variables row straight to a CSV file in Documents, using…

🧬 WQL / PowerShell

Win32_Share: Network Shares (WQL)

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