Tag: hardware

286 script(s) tagged “hardware”

🧬 WQL / PowerShell

Win32_Processor: Querying Processor Info Remotely (CIM Session)

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

⚡ PowerShell 5.1+

Watch Pointing Devices for Changes

Polls Win32_PointingDevice on an interval and prints a line whenever the Pointing Devices count changes — a lightweight…

🧬 WQL / PowerShell

Win32_BIOS: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📜 VBScript (WSH)

Get USB Controllers Report to File (VBScript)

Queries Win32_USBController via WMI and writes USB Controllers to a timestamped text file, handy for scheduled logon/lo…

🟣 C# / .NET 6+

Backup Video Controllers to JSON (C#)

Snapshots Video Controllers (Win32_VideoController) to a timestamped JSON file via System.Management and System.Text.Js…

🐍 Python 3.10+

Export Motherboard Info to CSV (Python)

Exports Motherboard Info (Win32_BaseBoard) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_CDROMDrive: Filtering CD/DVD Drives (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_CDROMDrive, starting from a LIKE '%' wildcard you customize with a real…

🧬 WQL / PowerShell

Win32_SoundDevice: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📄 JScript (WSH)

Get Video Controllers Report (JScript)

Queries Win32_VideoController via WMI and prints Video Controllers to the console — JScript, VBScript's WSH sibling lan…

📜 VBScript (WSH)

Get Physical Memory Modules Report (VBScript)

Queries Win32_PhysicalMemory via WMI and prints Physical Memory Modules to the console — no PowerShell required.

🐍 Python 3.10+

Backup USB Controllers to JSON (Python)

Snapshots USB Controllers (Win32_USBController) to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_BaseBoard: Filtering Motherboard Info (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_BaseBoard, starting from a LIKE '%' wildcard you customize with a real …