Tag: wmi
750 script(s) tagged “wmi”
Win32_Battery: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_Battery via Register-CimIndicationEvent β real WQL event query syβ¦
Get Installed Hotfixes Report to File (VBScript)
Queries Win32_QuickFixEngineering via WMI and writes Installed Hotfixes to a timestamped text file, handy for scheduledβ¦
Win32_PageFileUsage: Discovering Available Properties (Get-CimClass)
Uses Get-CimClass to list every real property and method Win32_PageFileUsage exposes on the current system, instead of β¦
Get Page File Usage Report (JScript)
Queries Win32_PageFileUsage via WMI and prints Page File Usage to the console β JScript, VBScript's WSH sibling languagβ¦
Backup Connected Monitors to JSON (C#)
Snapshots Connected Monitors (Win32_DesktopMonitor) to a timestamped JSON file via System.Management and System.Text.Jsβ¦
Get Physical Disk Drives Report to File (VBScript)
Queries Win32_DiskDrive via WMI and writes Physical Disk Drives to a timestamped text file, handy for scheduled logon/lβ¦
Win32_LogicalDisk: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_LogicalDisk via Register-CimIndicationEvent β real WQL event querβ¦
Export BIOS Info to CSV via WMI (VBA)
Queries Win32_BIOS via WMI and writes every BIOS Info row straight to a CSV file in Documents, using plain VBA file I/O.
Export Signed Drivers to CSV (Python)
Exports Signed Drivers (Win32_PnPSignedDriver) to a timestamped CSV file via wmic.
Get CD/DVD Drives Report (Python)
Uses wmic under the hood to report CD/DVD Drives (Win32_CDROMDrive) β no third-party packages required.
Get Installed Hotfixes Report (C#)
Queries Win32_QuickFixEngineering via WMI (System.Management) and prints Installed Hotfixes to the console.
Win32_DiskDrive: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_DiskDrive via Register-CimIndicationEvent β real WQL event query β¦