Tag: wmi

750 script(s) tagged “wmi”

πŸ–₯️ Batch (CMD)

Get BIOS Info Report (Batch)

Uses wmic to list BIOS Info (Win32_BIOS) straight from the command line.

🧬 WQL / PowerShell

Win32_ComputerSystem: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🐍 Python 3.10+

Export CD/DVD Drives to CSV (Python)

Exports CD/DVD Drives (Win32_CDROMDrive) to a timestamped CSV file via wmic.

πŸ“Š VBA (Excel)

Load Services into Excel via WMI

Queries Win32_Service via GetObject("winmgmts:") and dumps every Services row straight onto the active worksheet, no Po…

⚑ PowerShell 5.1+

Get Motherboard Info Report

Queries Win32_BaseBoard via WMI and reports Motherboard Info in a formatted table, with an optional CSV export.

πŸ“œ VBScript (WSH)

Get Startup Programs Report to File (VBScript)

Queries Win32_StartupCommand via WMI and writes Startup Programs to a timestamped text file, handy for scheduled logon/…

🐍 Python 3.10+

Backup Signed Drivers to JSON (Python)

Snapshots Signed Drivers (Win32_PnPSignedDriver) to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_DesktopMonitor: Sorting Connected Monitors (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…

🧬 WQL / PowerShell

Win32_Process: Finding Associated Objects (WQL ASSOCIATORS OF)

Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Proce…

⚑ PowerShell 5.1+

Get Video Controllers Report

Queries Win32_VideoController via WMI and reports Video Controllers in a formatted table, with an optional CSV export.

πŸ“Š VBA (Excel)

Export Processor Info to CSV via WMI (VBA)

Queries Win32_Processor via WMI and writes every Processor Info row straight to a CSV file in Documents, using plain VB…

🧬 WQL / PowerShell

Win32_Processor: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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