Tag: hardware

286 script(s) tagged “hardware”

📊 VBA (Excel)

Load Sound Devices into Excel via WMI

Queries Win32_SoundDevice via GetObject("winmgmts:") and dumps every Sound Devices row straight onto the active workshe…

⚡ PowerShell 5.1+

Get CD/DVD Drives Report

Queries Win32_CDROMDrive via WMI and reports CD/DVD Drives in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_DesktopMonitor: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📊 VBA (Excel)

Export Connected Monitors to CSV via WMI (VBA)

Queries Win32_DesktopMonitor via WMI and writes every Connected Monitors row straight to a CSV file in Documents, using…

⚡ PowerShell 5.1+

Watch Computer System Product Info for Changes

Polls Win32_ComputerSystemProduct on an interval and prints a line whenever the Computer System Product Info count chan…

🟣 C# / .NET 6+

Get Physical Memory Modules Report (C#)

Queries Win32_PhysicalMemory via WMI (System.Management) and prints Physical Memory Modules to the console.

📄 JScript (WSH)

Get USB Controllers Report (JScript)

Queries Win32_USBController via WMI and prints USB Controllers to the console — JScript, VBScript's WSH sibling languag…

📜 VBScript (WSH)

Get Pointing Devices Report to File (VBScript)

Queries Win32_PointingDevice via WMI and writes Pointing Devices to a timestamped text file, handy for scheduled logon/…

🧬 WQL / PowerShell

Win32_PointingDevice: Querying Pointing Devices Remotely (CIM Session)

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

📜 VBScript (WSH)

Get Sound Devices Report to File (VBScript)

Queries Win32_SoundDevice via WMI and writes Sound Devices to a timestamped text file, handy for scheduled logon/logoff…

⚡ PowerShell 5.1+

Backup Connected Monitors List to JSON

Snapshots Connected Monitors from Win32_DesktopMonitor to a timestamped JSON file for later comparison or auditing.

🖥️ Batch (CMD)

Export Processor Info to CSV (Batch)

Uses wmic to export Processor Info (Win32_Processor) to a timestamped CSV file.