Tag: hardware

286 script(s) tagged “hardware”

📜 VBScript (WSH)

Get Physical Memory Modules Report to File (VBScript)

Queries Win32_PhysicalMemory via WMI and writes Physical Memory Modules to a timestamped text file, handy for scheduled…

🧬 WQL / PowerShell

Win32_USBController: Finding Associated Objects (WQL ASSOCIATORS OF)

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

⚡ PowerShell 5.1+

Watch Connected Monitors for Changes

Polls Win32_DesktopMonitor on an interval and prints a line whenever the Connected Monitors count changes — a lightweig…

📄 JScript (WSH)

Get Battery Info Report (JScript)

Queries Win32_Battery via WMI and prints Battery Info to the console — JScript, VBScript's WSH sibling language.

🧬 WQL / PowerShell

Win32_Battery: Battery Info (WQL)

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

🧬 WQL / PowerShell

Win32_SoundDevice: Querying Sound Devices Remotely (CIM Session)

Runs the same Win32_SoundDevice WQL query against a remote computer over a CIM session — the modern, WinRM-based replac…

🧬 WQL / PowerShell

Win32_VideoController: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_VideoController: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📊 VBA (Excel)

Load Pointing Devices into Excel via WMI

Queries Win32_PointingDevice via GetObject("winmgmts:") and dumps every Pointing Devices row straight onto the active w…

🧬 WQL / PowerShell

Win32_SoundDevice: Sound Devices (WQL)

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

📜 VBScript (WSH)

Get Connected Monitors Report to File (VBScript)

Queries Win32_DesktopMonitor via WMI and writes Connected Monitors to a timestamped text file, handy for scheduled logo…

🐍 Python 3.10+

Export Video Controllers to CSV (Python)

Exports Video Controllers (Win32_VideoController) to a timestamped CSV file via wmic.