Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Battery: Sorting Battery Info (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 Processes Report to File (VBScript)

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

πŸ“Š VBA (Excel)

Load Physical Memory Modules into Excel via WMI

Queries Win32_PhysicalMemory via GetObject("winmgmts:") and dumps every Physical Memory Modules row straight onto the a…

🧬 WQL / PowerShell

Win32_BaseBoard: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🧬 WQL / PowerShell

Win32_Keyboard: Sorting Keyboard Info (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…

πŸ–₯️ Batch (CMD)

Get Sound Devices Report (Batch)

Uses wmic to list Sound Devices (Win32_SoundDevice) straight from the command line.

πŸ“Š VBA (Excel)

Export Installed Hotfixes to CSV via WMI (VBA)

Queries Win32_QuickFixEngineering via WMI and writes every Installed Hotfixes row straight to a CSV file in Documents, …

🟣 C# / .NET 6+

Get Environment Variables Report (C#)

Queries Win32_Environment via WMI (System.Management) and prints Environment Variables to the console.

🐍 Python 3.10+

Backup Printers to JSON (Python)

Snapshots Printers (Win32_Printer) to a timestamped JSON file for later comparison or auditing.

🐍 Python 3.10+

Get BIOS Info Report (Python)

Uses wmic under the hood to report BIOS Info (Win32_BIOS) β€” no third-party packages required.

πŸ“Š VBA (Excel)

Export Page File Usage to CSV via WMI (VBA)

Queries Win32_PageFileUsage via WMI and writes every Page File Usage row straight to a CSV file in Documents, using pla…

⚑ PowerShell 5.1+

Get Time Zone Settings Report

Queries Win32_TimeZone via WMI and reports Time Zone Settings in a formatted table, with an optional CSV export.