Tag: wmi

750 script(s) tagged “wmi”

πŸ–₯️ Batch (CMD)

Get CD/DVD Drives Report (Batch)

Uses wmic to list CD/DVD Drives (Win32_CDROMDrive) straight from the command line.

πŸ–₯️ Batch (CMD)

Export Printers to CSV (Batch)

Uses wmic to export Printers (Win32_Printer) to a timestamped CSV file.

🧬 WQL / PowerShell

Win32_SoundDevice: Discovering Available Properties (Get-CimClass)

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

πŸ“œ VBScript (WSH)

Get Operating System Info Report to File (VBScript)

Queries Win32_OperatingSystem via WMI and writes Operating System Info to a timestamped text file, handy for scheduled …

πŸ“„ JScript (WSH)

Get CD/DVD Drives Report (JScript)

Queries Win32_CDROMDrive via WMI and prints CD/DVD Drives to the console β€” JScript, VBScript's WSH sibling language.

🐍 Python 3.10+

Backup Network Adapters to JSON (Python)

Snapshots Network Adapters (Win32_NetworkAdapter) to a timestamped JSON file for later comparison or auditing.

πŸ“„ JScript (WSH)

Get Connected Monitors Report (JScript)

Queries Win32_DesktopMonitor via WMI and prints Connected Monitors to the console β€” JScript, VBScript's WSH sibling lan…

🟣 C# / .NET 6+

Backup USB Controllers to JSON (C#)

Snapshots USB Controllers (Win32_USBController) to a timestamped JSON file via System.Management and System.Text.Json.

⚑ PowerShell 5.1+

Watch Motherboard Info for Changes

Polls Win32_BaseBoard on an interval and prints a line whenever the Motherboard Info count changes β€” a lightweight way …

πŸ–₯️ Batch (CMD)

Get Video Controllers Report (Batch)

Uses wmic to list Video Controllers (Win32_VideoController) straight from the command line.

πŸ“Š VBA (Excel)

Load Computer System Info into Excel via WMI

Queries Win32_ComputerSystem via GetObject("winmgmts:") and dumps every Computer System Info row straight onto the acti…

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Installed Hotfixes (WQL)

A minimal WQL reference query against Win32_QuickFixEngineering β€” the raw SELECT statement plus a one-line runner, usef…