Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Battery: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_Battery via Register-CimIndicationEvent β€” real WQL event query sy…

πŸ“œ VBScript (WSH)

Get Installed Hotfixes Report to File (VBScript)

Queries Win32_QuickFixEngineering via WMI and writes Installed Hotfixes to a timestamped text file, handy for scheduled…

🧬 WQL / PowerShell

Win32_PageFileUsage: Discovering Available Properties (Get-CimClass)

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

πŸ“„ JScript (WSH)

Get Page File Usage Report (JScript)

Queries Win32_PageFileUsage via WMI and prints Page File Usage to the console β€” JScript, VBScript's WSH sibling languag…

🟣 C# / .NET 6+

Backup Connected Monitors to JSON (C#)

Snapshots Connected Monitors (Win32_DesktopMonitor) to a timestamped JSON file via System.Management and System.Text.Js…

πŸ“œ VBScript (WSH)

Get Physical Disk Drives Report to File (VBScript)

Queries Win32_DiskDrive via WMI and writes Physical Disk Drives to a timestamped text file, handy for scheduled logon/l…

🧬 WQL / PowerShell

Win32_LogicalDisk: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_LogicalDisk via Register-CimIndicationEvent β€” real WQL event quer…

πŸ“Š VBA (Excel)

Export BIOS Info to CSV via WMI (VBA)

Queries Win32_BIOS via WMI and writes every BIOS Info row straight to a CSV file in Documents, using plain VBA file I/O.

🐍 Python 3.10+

Export Signed Drivers to CSV (Python)

Exports Signed Drivers (Win32_PnPSignedDriver) to a timestamped CSV file via wmic.

🐍 Python 3.10+

Get CD/DVD Drives Report (Python)

Uses wmic under the hood to report CD/DVD Drives (Win32_CDROMDrive) β€” no third-party packages required.

🟣 C# / .NET 6+

Get Installed Hotfixes Report (C#)

Queries Win32_QuickFixEngineering via WMI (System.Management) and prints Installed Hotfixes to the console.

🧬 WQL / PowerShell

Win32_DiskDrive: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_DiskDrive via Register-CimIndicationEvent β€” real WQL event query …