Tag: wmi

750 script(s) tagged “wmi”

📊 VBA (Excel)

Load Sound Devices into Excel via WMI

Queries Win32_SoundDevice via GetObject("winmgmts:") and dumps every Sound Devices row straight onto the active workshe…

📜 VBScript (WSH)

System Info Report

Collects OS, CPU, RAM, and BIOS information via WMI and writes a plain-text inventory report, no PowerShell required.

⚡ PowerShell 5.1+

Get CD/DVD Drives Report

Queries Win32_CDROMDrive via WMI and reports CD/DVD Drives in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_Printer: Discovering Available Properties (Get-CimClass)

Uses Get-CimClass to list every real property and method Win32_Printer exposes on the current system, instead of guessi…

🧬 WQL / PowerShell

Win32_DesktopMonitor: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📊 VBA (Excel)

Export Connected Monitors to CSV via WMI (VBA)

Queries Win32_DesktopMonitor via WMI and writes every Connected Monitors row straight to a CSV file in Documents, using…

🧬 WQL / PowerShell

Win32_Share: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📊 VBA (Excel)

Load Time Zone Settings into Excel via WMI

Queries Win32_TimeZone via GetObject("winmgmts:") and dumps every Time Zone Settings row straight onto the active works…

⚡ PowerShell 5.1+

Watch Computer System Product Info for Changes

Polls Win32_ComputerSystemProduct on an interval and prints a line whenever the Computer System Product Info count chan…

🟣 C# / .NET 6+

Get Physical Memory Modules Report (C#)

Queries Win32_PhysicalMemory via WMI (System.Management) and prints Physical Memory Modules to the console.

🐍 Python 3.10+

Backup Physical Disk Drives to JSON (Python)

Snapshots Physical Disk Drives (Win32_DiskDrive) to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_ComputerSystem: Querying Computer System Info Remotely (CIM Session)

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