Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_TimeZone: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🐍 Python 3.10+

Backup Pointing Devices to JSON (Python)

Snapshots Pointing Devices (Win32_PointingDevice) to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_StartupCommand: Discovering Available Properties (Get-CimClass)

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

πŸ–₯️ Batch (CMD)

Export Network Adapter Configuration to CSV (Batch)

Uses wmic to export Network Adapter Configuration (Win32_NetworkAdapterConfiguration) to a timestamped CSV file.

⚑ PowerShell 5.1+

Watch Page File Usage for Changes

Polls Win32_PageFileUsage on an interval and prints a line whenever the Page File Usage count changes β€” a lightweight w…

🟣 C# / .NET 6+

Get Computer System Product Info Report (C#)

Queries Win32_ComputerSystemProduct via WMI (System.Management) and prints Computer System Product Info to the console.

πŸ“„ JScript (WSH)

Get Startup Programs Report (JScript)

Queries Win32_StartupCommand via WMI and prints Startup Programs to the console β€” JScript, VBScript's WSH sibling langu…

🧬 WQL / PowerShell

Win32_VideoController: Querying Video Controllers Remotely (CIM Session)

Runs the same Win32_VideoController WQL query against a remote computer over a CIM session β€” the modern, WinRM-based re…

🐍 Python 3.10+

Backup System Drivers to JSON (Python)

Snapshots System Drivers (Win32_SystemDriver) to a timestamped JSON file for later comparison or auditing.

🟣 C# / .NET 6+

Backup Processor Info to JSON (C#)

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

🧬 WQL / PowerShell

Win32_PageFileUsage: Filtering Page File Usage (WQL WHERE)

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

⚑ PowerShell 5.1+

Get Computer System Info Report

Queries Win32_ComputerSystem via WMI and reports Computer System Info in a formatted table, with an optional CSV export.