Tag: wmi

750 script(s) tagged “wmi”

πŸ–₯️ Batch (CMD)

Export Startup Programs to CSV (Batch)

Uses wmic to export Startup Programs (Win32_StartupCommand) to a timestamped CSV file.

⚑ PowerShell 5.1+

Get Installed MSI Products Report

Queries Win32_Product via WMI and reports Installed MSI Products in a formatted table, with an optional CSV export.

πŸ“Š VBA (Excel)

Load Logical Disks into Excel via WMI

Queries Win32_LogicalDisk via GetObject("winmgmts:") and dumps every Logical Disks row straight onto the active workshe…

πŸ“„ JScript (WSH)

Get Keyboard Info Report (JScript)

Queries Win32_Keyboard via WMI and prints Keyboard Info to the console β€” JScript, VBScript's WSH sibling language.

🧬 WQL / PowerShell

Win32_LogicalDisk: Sorting Logical Disks (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 Sound Devices Report (VBScript)

Queries Win32_SoundDevice via WMI and prints Sound Devices to the console β€” no PowerShell required.

πŸ“œ VBScript (WSH)

Get Network Adapters Report (VBScript)

Queries Win32_NetworkAdapter via WMI and prints Network Adapters to the console β€” no PowerShell required.

πŸ“œ VBScript (WSH)

Get Motherboard Info Report (VBScript)

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

🧬 WQL / PowerShell

Win32_SystemDriver: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

⚑ PowerShell 5.1+

Get Installed Hotfixes Report

Queries Win32_QuickFixEngineering via WMI and reports Installed Hotfixes in a formatted table, with an optional CSV exp…

πŸ“œ VBScript (WSH)

Get Battery Info Report (VBScript)

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

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Network Login Profiles (WQL)

A minimal WQL reference query against Win32_NetworkLoginProfile β€” the raw SELECT statement plus a one-line runner, usef…