Tag: wmi
750 script(s) tagged “wmi”
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β¦
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.
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β¦
Win32_BaseBoard: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_BaseBoard via Register-CimIndicationEvent β real WQL event query β¦
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β¦
Get Sound Devices Report (Batch)
Uses wmic to list Sound Devices (Win32_SoundDevice) straight from the command line.
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, β¦
Get Environment Variables Report (C#)
Queries Win32_Environment via WMI (System.Management) and prints Environment Variables to the console.
Backup Printers to JSON (Python)
Snapshots Printers (Win32_Printer) to a timestamped JSON file for later comparison or auditing.
Get BIOS Info Report (Python)
Uses wmic under the hood to report BIOS Info (Win32_BIOS) β no third-party packages required.
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β¦
Get Time Zone Settings Report
Queries Win32_TimeZone via WMI and reports Time Zone Settings in a formatted table, with an optional CSV export.