Tag: wmi

750 script(s) tagged “wmi”

πŸ“Š VBA (Excel)

Load Local User Accounts into Excel via WMI

Queries Win32_UserAccount via GetObject("winmgmts:") and dumps every Local User Accounts row straight onto the active w…

πŸ–₯️ Batch (CMD)

Get Startup Programs Report (Batch)

Uses wmic to list Startup Programs (Win32_StartupCommand) straight from the command line.

🧬 WQL / PowerShell

Win32_VideoController: Video Controllers (WQL)

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

🧬 WQL / PowerShell

Win32_PhysicalMemory: Discovering Available Properties (Get-CimClass)

Uses Get-CimClass to list every real property and method Win32_PhysicalMemory exposes on the current system, instead of…

πŸ“Š VBA (Excel)

Export Pointing Devices to CSV via WMI (VBA)

Queries Win32_PointingDevice via WMI and writes every Pointing Devices row straight to a CSV file in Documents, using p…

🧬 WQL / PowerShell

Win32_ComputerSystemProduct: Computer System Product Info (WQL)

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

πŸ“„ JScript (WSH)

Get Operating System Info Report (JScript)

Queries Win32_OperatingSystem via WMI and prints Operating System Info to the console β€” JScript, VBScript's WSH sibling…

⚑ PowerShell 5.1+

Backup CD/DVD Drives List to JSON

Snapshots CD/DVD Drives from Win32_CDROMDrive to a timestamped JSON file for later comparison or auditing.

⚑ PowerShell 5.1+

Watch Installed MSI Products for Changes

Polls Win32_Product on an interval and prints a line whenever the Installed MSI Products count changes β€” a lightweight …

🧬 WQL / PowerShell

Win32_BaseBoard: Finding Associated Objects (WQL ASSOCIATORS OF)

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

πŸ“œ VBScript (WSH)

Get Pointing Devices Report (VBScript)

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

🧬 WQL / PowerShell

Win32_DiskDrive: Sorting Physical Disk Drives (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…