Tag: hardware

286 script(s) tagged “hardware”

⚡ PowerShell 5.1+

Backup CD/DVD Drives List to JSON

Snapshots CD/DVD Drives from Win32_CDROMDrive to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_BaseBoard: Finding Associated Objects (WQL ASSOCIATORS OF)

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

📜 VBScript (WSH)

Get Pointing Devices Report (VBScript)

Queries Win32_PointingDevice via WMI and prints Pointing Devices to the console — no PowerShell required.

🖥️ Batch (CMD)

Get Processor Info Report (Batch)

Uses wmic to list Processor Info (Win32_Processor) straight from the command line.

📊 VBA (Excel)

Load Processor Info into Excel via WMI

Queries Win32_Processor via GetObject("winmgmts:") and dumps every Processor Info row straight onto the active workshee…

🧬 WQL / PowerShell

Win32_Battery: Discovering Available Properties (Get-CimClass)

Uses Get-CimClass to list every real property and method Win32_Battery exposes on the current system, instead of guessi…

📊 VBA (Excel)

Export Video Controllers to CSV via WMI (VBA)

Queries Win32_VideoController via WMI and writes every Video Controllers row straight to a CSV file in Documents, using…

🧬 WQL / PowerShell

Win32_USBController: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🧬 WQL / PowerShell

Win32_BaseBoard: Sorting Motherboard 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…

🧬 WQL / PowerShell

Win32_SoundDevice: Filtering Sound Devices (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_DesktopMonitor: Filtering Connected Monitors (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_PointingDevice: Sorting Pointing Devices (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…