Tag: wmi

750 script(s) tagged “wmi”

⚑ PowerShell 5.1+

Watch Video Controllers for Changes

Polls Win32_VideoController on an interval and prints a line whenever the Video Controllers count changes β€” a lightweig…

⚑ PowerShell 5.1+

Get BIOS Info Report

Queries Win32_BIOS via WMI and reports BIOS Info in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_StartupCommand: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🧬 WQL / PowerShell

Win32_PhysicalMemory: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🧬 WQL / PowerShell

Win32_NetworkAdapterConfiguration: Sorting Network Adapter Configuration (WQL has no ORDER BY)

WQL has no ORDER BY clause β€” this shows the standard workaround of piping Get-CimInstance results through Sort-Object o…

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_QuickFixEngineering via Register-CimIndicationEvent β€” real WQL ev…

🧬 WQL / PowerShell

Win32_PhysicalMemory: Sorting Physical Memory Modules (WQL has no ORDER BY)

WQL has no ORDER BY clause β€” this shows the standard workaround of piping Get-CimInstance results through Sort-Object o…

⚑ PowerShell 5.1+

Backup Services List to JSON

Snapshots Services from Win32_Service to a timestamped JSON file for later comparison or auditing.

πŸ–₯️ Batch (CMD)

Get Physical Memory Modules Report (Batch)

Uses wmic to list Physical Memory Modules (Win32_PhysicalMemory) straight from the command line.

πŸ–₯️ Batch (CMD)

Export CD/DVD Drives to CSV (Batch)

Uses wmic to export CD/DVD Drives (Win32_CDROMDrive) to a timestamped CSV file.

🐍 Python 3.10+

Get Environment Variables Report (Python)

Uses wmic under the hood to report Environment Variables (Win32_Environment) β€” no third-party packages required.

⚑ PowerShell 5.1+

Backup Video Controllers List to JSON

Snapshots Video Controllers from Win32_VideoController to a timestamped JSON file for later comparison or auditing.