Tag: wmi
750 script(s) tagged “wmi”
Export Startup Programs to CSV (Batch)
Uses wmic to export Startup Programs (Win32_StartupCommand) to a timestamped CSV file.
Get Installed MSI Products Report
Queries Win32_Product via WMI and reports Installed MSI Products in a formatted table, with an optional CSV export.
Load Logical Disks into Excel via WMI
Queries Win32_LogicalDisk via GetObject("winmgmts:") and dumps every Logical Disks row straight onto the active worksheβ¦
Get Keyboard Info Report (JScript)
Queries Win32_Keyboard via WMI and prints Keyboard Info to the console β JScript, VBScript's WSH sibling language.
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β¦
Get Sound Devices Report (VBScript)
Queries Win32_SoundDevice via WMI and prints Sound Devices to the console β no PowerShell required.
Get Network Adapters Report (VBScript)
Queries Win32_NetworkAdapter via WMI and prints Network Adapters to the console β no PowerShell required.
Get Motherboard Info Report (VBScript)
Queries Win32_BaseBoard via WMI and prints Motherboard Info to the console β no PowerShell required.
Win32_SystemDriver: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_SystemDriver via Register-CimIndicationEvent β real WQL event queβ¦
Get Installed Hotfixes Report
Queries Win32_QuickFixEngineering via WMI and reports Installed Hotfixes in a formatted table, with an optional CSV expβ¦
Get Battery Info Report (VBScript)
Queries Win32_Battery via WMI and prints Battery Info to the console β no PowerShell required.
Win32_NetworkLoginProfile: Network Login Profiles (WQL)
A minimal WQL reference query against Win32_NetworkLoginProfile β the raw SELECT statement plus a one-line runner, usefβ¦