Tag: hardware
286 script(s) tagged “hardware”
Export Physical Memory Modules to CSV (Batch)
Uses wmic to export Physical Memory Modules (Win32_PhysicalMemory) to a timestamped CSV file.
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…
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…
Get Sound Devices Report
Queries Win32_SoundDevice via WMI and reports Sound Devices in a formatted table, with an optional CSV export.
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…
Win32_USBController: USB Controllers (WQL)
A minimal WQL reference query against Win32_USBController — the raw SELECT statement plus a one-line runner, useful for…
Get Battery Info Report
Queries Win32_Battery via WMI and reports Battery Info in a formatted table, with an optional CSV export.
Win32_ComputerSystemProduct: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_ComputerSystemProduct via Register-CimIndicationEvent — real WQL …
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…
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…
Get Computer System Product Info Report (JScript)
Queries Win32_ComputerSystemProduct via WMI and prints Computer System Product Info to the console — JScript, VBScript'…
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…