Tag: hardware

286 script(s) tagged “hardware”

🖥️ Batch (CMD)

Export Physical Memory Modules to CSV (Batch)

Uses wmic to export Physical Memory Modules (Win32_PhysicalMemory) to a timestamped CSV file.

📊 VBA (Excel)

Load CD/DVD Drives into Excel via WMI

Queries Win32_CDROMDrive via GetObject("winmgmts:") and dumps every CD/DVD Drives row straight onto the active workshee…

📊 VBA (Excel)

Export USB Controllers to CSV via WMI (VBA)

Queries Win32_USBController via WMI and writes every USB Controllers row straight to a CSV file in Documents, using pla…

⚡ PowerShell 5.1+

Get Sound Devices Report

Queries Win32_SoundDevice via WMI and reports Sound Devices in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_DesktopMonitor: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_USBController: USB Controllers (WQL)

A minimal WQL reference query against Win32_USBController — the raw SELECT statement plus a one-line runner, useful for…

⚡ PowerShell 5.1+

Get Battery Info Report

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

🧬 WQL / PowerShell

Win32_ComputerSystemProduct: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_ComputerSystemProduct via Register-CimIndicationEvent — real WQL …

📊 VBA (Excel)

Export Battery Info to CSV via WMI (VBA)

Queries Win32_Battery via WMI and writes every Battery Info row straight to a CSV file in Documents, using plain VBA fi…

🧬 WQL / PowerShell

Win32_BIOS: Sorting BIOS 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…

📄 JScript (WSH)

Get Computer System Product Info Report (JScript)

Queries Win32_ComputerSystemProduct via WMI and prints Computer System Product Info to the console — JScript, VBScript'…

⚡ PowerShell 5.1+

Watch Physical Memory Modules for Changes

Polls Win32_PhysicalMemory on an interval and prints a line whenever the Physical Memory Modules count changes — a ligh…