Tag: hardware

286 script(s) tagged “hardware”

🧬 WQL / PowerShell

Win32_Keyboard: Querying Keyboard Info Remotely (CIM Session)

Runs the same Win32_Keyboard WQL query against a remote computer over a CIM session β€” the modern, WinRM-based replaceme…

πŸ“œ VBScript (WSH)

Get Battery Info Report to File (VBScript)

Queries Win32_Battery via WMI and writes Battery Info to a timestamped text file, handy for scheduled logon/logoff scri…

⚑ PowerShell 5.1+

Watch CD/DVD Drives for Changes

Polls Win32_CDROMDrive on an interval and prints a line whenever the CD/DVD Drives count changes β€” a lightweight way to…

πŸ“œ VBScript (WSH)

Get CD/DVD Drives Report to File (VBScript)

Queries Win32_CDROMDrive via WMI and writes CD/DVD Drives to a timestamped text file, handy for scheduled logon/logoff …

🐍 Python 3.10+

Backup CD/DVD Drives to JSON (Python)

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

πŸ“„ JScript (WSH)

Get Physical Memory Modules Report (JScript)

Queries Win32_PhysicalMemory via WMI and prints Physical Memory Modules to the console β€” JScript, VBScript's WSH siblin…

🐍 Python 3.10+

Backup Processor Info to JSON (Python)

Snapshots Processor Info (Win32_Processor) to a timestamped JSON file for later comparison or auditing.

⚑ PowerShell 5.1+

Backup Pointing Devices List to JSON

Snapshots Pointing Devices from Win32_PointingDevice to a timestamped JSON file for later comparison or auditing.

🐍 Python 3.10+

Get Video Controllers Report (Python)

Uses wmic under the hood to report Video Controllers (Win32_VideoController) β€” no third-party packages required.

πŸ“œ VBScript (WSH)

Get CD/DVD Drives Report (VBScript)

Queries Win32_CDROMDrive via WMI and prints CD/DVD Drives to the console β€” no PowerShell required.

🧬 WQL / PowerShell

Win32_PhysicalMemory: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_CDROMDrive: CD/DVD Drives (WQL)

A minimal WQL reference query against Win32_CDROMDrive β€” the raw SELECT statement plus a one-line runner, useful for le…