Tag: wmi
750 script(s) tagged “wmi”
Get CD/DVD Drives Report (Batch)
Uses wmic to list CD/DVD Drives (Win32_CDROMDrive) straight from the command line.
Export Printers to CSV (Batch)
Uses wmic to export Printers (Win32_Printer) to a timestamped CSV file.
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β¦
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 β¦
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.
Backup Network Adapters to JSON (Python)
Snapshots Network Adapters (Win32_NetworkAdapter) to a timestamped JSON file for later comparison or auditing.
Get Connected Monitors Report (JScript)
Queries Win32_DesktopMonitor via WMI and prints Connected Monitors to the console β JScript, VBScript's WSH sibling lanβ¦
Backup USB Controllers to JSON (C#)
Snapshots USB Controllers (Win32_USBController) to a timestamped JSON file via System.Management and System.Text.Json.
Watch Motherboard Info for Changes
Polls Win32_BaseBoard on an interval and prints a line whenever the Motherboard Info count changes β a lightweight way β¦
Get Video Controllers Report (Batch)
Uses wmic to list Video Controllers (Win32_VideoController) straight from the command line.
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β¦
Win32_QuickFixEngineering: Installed Hotfixes (WQL)
A minimal WQL reference query against Win32_QuickFixEngineering β the raw SELECT statement plus a one-line runner, usefβ¦