Tag: wmi
750 script(s) tagged “wmi”
Watch Video Controllers for Changes
Polls Win32_VideoController on an interval and prints a line whenever the Video Controllers count changes β a lightweigβ¦
Get BIOS Info Report
Queries Win32_BIOS via WMI and reports BIOS Info in a formatted table, with an optional CSV export.
Win32_StartupCommand: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_StartupCommand via Register-CimIndicationEvent β real WQL event qβ¦
Win32_PhysicalMemory: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_PhysicalMemory via Register-CimIndicationEvent β real WQL event qβ¦
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β¦
Win32_QuickFixEngineering: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_QuickFixEngineering via Register-CimIndicationEvent β real WQL evβ¦
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β¦
Backup Services List to JSON
Snapshots Services from Win32_Service to a timestamped JSON file for later comparison or auditing.
Get Physical Memory Modules Report (Batch)
Uses wmic to list Physical Memory Modules (Win32_PhysicalMemory) straight from the command line.
Export CD/DVD Drives to CSV (Batch)
Uses wmic to export CD/DVD Drives (Win32_CDROMDrive) to a timestamped CSV file.
Get Environment Variables Report (Python)
Uses wmic under the hood to report Environment Variables (Win32_Environment) β no third-party packages required.
Backup Video Controllers List to JSON
Snapshots Video Controllers from Win32_VideoController to a timestamped JSON file for later comparison or auditing.