Tag: wmi

750 script(s) tagged “wmi”

⚑ PowerShell 5.1+

Watch Physical Memory Modules for Changes

Polls Win32_PhysicalMemory on an interval and prints a line whenever the Physical Memory Modules count changes β€” a ligh…

🟣 C# / .NET 6+

Backup Computer System Product Info to JSON (C#)

Snapshots Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped JSON file via System.Management a…

πŸ–₯️ Batch (CMD)

Get Physical Disk Drives Report (Batch)

Uses wmic to list Physical Disk Drives (Win32_DiskDrive) straight from the command line.

🟣 C# / .NET 6+

Backup Services to JSON (C#)

Snapshots Services (Win32_Service) to a timestamped JSON file via System.Management and System.Text.Json.

🐍 Python 3.10+

Get Network Shares Report (Python)

Uses wmic under the hood to report Network Shares (Win32_Share) β€” no third-party packages required.

🧬 WQL / PowerShell

Win32_Printer: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🐍 Python 3.10+

Export Processor Info to CSV (Python)

Exports Processor Info (Win32_Processor) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_Keyboard: Keyboard Info (WQL)

A minimal WQL reference query against Win32_Keyboard β€” the raw SELECT statement plus a one-line runner, useful for lear…

⚑ PowerShell 5.1+

Watch Network Shares for Changes

Polls Win32_Share on an interval and prints a line whenever the Network Shares count changes β€” a lightweight way to not…

🧬 WQL / PowerShell

Win32_Service: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

πŸ“œ VBScript (WSH)

Get Computer System Product Info Report (VBScript)

Queries Win32_ComputerSystemProduct via WMI and prints Computer System Product Info to the console β€” no PowerShell requ…

🧬 WQL / PowerShell

Win32_ComputerSystem: Computer System Info (WQL)

A minimal WQL reference query against Win32_ComputerSystem β€” the raw SELECT statement plus a one-line runner, useful fo…