Tag: wmi
750 script(s) tagged “wmi”
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β¦
Backup Computer System Product Info to JSON (C#)
Snapshots Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped JSON file via System.Management aβ¦
Get Physical Disk Drives Report (Batch)
Uses wmic to list Physical Disk Drives (Win32_DiskDrive) straight from the command line.
Backup Services to JSON (C#)
Snapshots Services (Win32_Service) to a timestamped JSON file via System.Management and System.Text.Json.
Get Network Shares Report (Python)
Uses wmic under the hood to report Network Shares (Win32_Share) β no third-party packages required.
Win32_Printer: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_Printer via Register-CimIndicationEvent β real WQL event query syβ¦
Export Processor Info to CSV (Python)
Exports Processor Info (Win32_Processor) to a timestamped CSV file via wmic.
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β¦
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β¦
Win32_Service: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_Service via Register-CimIndicationEvent β real WQL event query syβ¦
Get Computer System Product Info Report (VBScript)
Queries Win32_ComputerSystemProduct via WMI and prints Computer System Product Info to the console β no PowerShell requβ¦
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β¦