Tag: wmi
750 script(s) tagged “wmi”
Get Signed Drivers Report (JScript)
Queries Win32_PnPSignedDriver via WMI and prints Signed Drivers to the console β JScript, VBScript's WSH sibling languaβ¦
Get Installed Hotfixes Report (Batch)
Uses wmic to list Installed Hotfixes (Win32_QuickFixEngineering) straight from the command line.
Watch Processor Info for Changes
Polls Win32_Processor on an interval and prints a line whenever the Processor Info count changes β a lightweight way toβ¦
Get Environment Variables Report (VBScript)
Queries Win32_Environment via WMI and prints Environment Variables to the console β no PowerShell required.
Win32_LogicalDisk: Discovering Available Properties (Get-CimClass)
Uses Get-CimClass to list every real property and method Win32_LogicalDisk exposes on the current system, instead of guβ¦
Get USB Controllers Report (C#)
Queries Win32_USBController via WMI (System.Management) and prints USB Controllers to the console.
Get Logical Disks Report (VBScript)
Queries Win32_LogicalDisk via WMI and prints Logical Disks to the console β no PowerShell required.
Get Network Shares Report (JScript)
Queries Win32_Share via WMI and prints Network Shares to the console β JScript, VBScript's WSH sibling language.
Get CD/DVD Drives Report (C#)
Queries Win32_CDROMDrive via WMI (System.Management) and prints CD/DVD Drives to the console.
Win32_ComputerSystemProduct: Sorting Computer System Product 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β¦
Export Processes to CSV (Batch)
Uses wmic to export Processes (Win32_Process) to a timestamped CSV file.
Backup Logical Disks List to JSON
Snapshots Logical Disks from Win32_LogicalDisk to a timestamped JSON file for later comparison or auditing.