Tag: hardware

286 script(s) tagged “hardware”

🐍 Python 3.10+

Get Connected Monitors Report (Python)

Uses wmic under the hood to report Connected Monitors (Win32_DesktopMonitor) β€” no third-party packages required.

πŸ–₯️ Batch (CMD)

Get BIOS Info Report (Batch)

Uses wmic to list BIOS Info (Win32_BIOS) straight from the command line.

🐍 Python 3.10+

Export CD/DVD Drives to CSV (Python)

Exports CD/DVD Drives (Win32_CDROMDrive) to a timestamped CSV file via wmic.

⚑ PowerShell 5.1+

Get Motherboard Info Report

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

🧬 WQL / PowerShell

Win32_DesktopMonitor: Sorting Connected Monitors (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…

⚑ PowerShell 5.1+

Get Video Controllers Report

Queries Win32_VideoController via WMI and reports Video Controllers in a formatted table, with an optional CSV export.

πŸ“Š VBA (Excel)

Export Processor Info to CSV via WMI (VBA)

Queries Win32_Processor via WMI and writes every Processor Info row straight to a CSV file in Documents, using plain VB…

🧬 WQL / PowerShell

Win32_Processor: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_Processor via Register-CimIndicationEvent β€” real WQL event query …

⚑ PowerShell 5.1+

Watch USB Controllers for Changes

Polls Win32_USBController on an interval and prints a line whenever the USB Controllers count changes β€” a lightweight w…

🟣 C# / .NET 6+

Backup CD/DVD Drives to JSON (C#)

Snapshots CD/DVD Drives (Win32_CDROMDrive) to a timestamped JSON file via System.Management and System.Text.Json.

⚑ PowerShell 5.1+

Backup Battery Info List to JSON

Snapshots Battery Info from Win32_Battery to a timestamped JSON file for later comparison or auditing.

🐍 Python 3.10+

Backup Computer System Product Info to JSON (Python)

Snapshots Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped JSON file for later comparison or…