Tag: wmi

750 script(s) tagged “wmi”

🐍 Python 3.10+

Export Video Controllers to CSV (Python)

Exports Video Controllers (Win32_VideoController) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_Product: Sorting Installed MSI Products (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…

πŸ“œ VBScript (WSH)

Get Printers Report to File (VBScript)

Queries Win32_Printer via WMI and writes Printers to a timestamped text file, handy for scheduled logon/logoff scripts.

🧬 WQL / PowerShell

Win32_OperatingSystem: Filtering Operating System Info (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_OperatingSystem, starting from a LIKE '%' wildcard you customize with a…

⚑ PowerShell 5.1+

Watch Services for Changes

Polls Win32_Service on an interval and prints a line whenever the Services count changes β€” a lightweight way to notice …

πŸ“œ VBScript (WSH)

Get Printers Report (VBScript)

Queries Win32_Printer via WMI and prints Printers to the console β€” no PowerShell required.

🧬 WQL / PowerShell

Win32_Group: Filtering Local Groups (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_Group, starting from a LIKE '%' wildcard you customize with a real sear…

🐍 Python 3.10+

Backup Installed MSI Products to JSON (Python)

Snapshots Installed MSI Products (Win32_Product) to a timestamped JSON file for later comparison or auditing.

⚑ PowerShell 5.1+

Watch Installed Hotfixes for Changes

Polls Win32_QuickFixEngineering on an interval and prints a line whenever the Installed Hotfixes count changes β€” a ligh…

πŸ“œ VBScript (WSH)

Get BIOS Info Report (VBScript)

Queries Win32_BIOS via WMI and prints BIOS Info to the console β€” no PowerShell required.

πŸ“Š VBA (Excel)

Export Physical Memory Modules to CSV via WMI (VBA)

Queries Win32_PhysicalMemory via WMI and writes every Physical Memory Modules row straight to a CSV file in Documents, …

🧬 WQL / PowerShell

Win32_Keyboard: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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