Tag: wmi

750 script(s) tagged “wmi”

πŸ“„ JScript (WSH)

Get Signed Drivers Report (JScript)

Queries Win32_PnPSignedDriver via WMI and prints Signed Drivers to the console β€” JScript, VBScript's WSH sibling langua…

πŸ–₯️ Batch (CMD)

Get Installed Hotfixes Report (Batch)

Uses wmic to list Installed Hotfixes (Win32_QuickFixEngineering) straight from the command line.

⚑ PowerShell 5.1+

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…

πŸ“œ VBScript (WSH)

Get Environment Variables Report (VBScript)

Queries Win32_Environment via WMI and prints Environment Variables to the console β€” no PowerShell required.

🧬 WQL / PowerShell

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…

🟣 C# / .NET 6+

Get USB Controllers Report (C#)

Queries Win32_USBController via WMI (System.Management) and prints USB Controllers to the console.

πŸ“œ VBScript (WSH)

Get Logical Disks Report (VBScript)

Queries Win32_LogicalDisk via WMI and prints Logical Disks to the console β€” no PowerShell required.

πŸ“„ JScript (WSH)

Get Network Shares Report (JScript)

Queries Win32_Share via WMI and prints Network Shares to the console β€” JScript, VBScript's WSH sibling language.

🟣 C# / .NET 6+

Get CD/DVD Drives Report (C#)

Queries Win32_CDROMDrive via WMI (System.Management) and prints CD/DVD Drives to the console.

🧬 WQL / PowerShell

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…

πŸ–₯️ Batch (CMD)

Export Processes to CSV (Batch)

Uses wmic to export Processes (Win32_Process) to a timestamped CSV file.

⚑ PowerShell 5.1+

Backup Logical Disks List to JSON

Snapshots Logical Disks from Win32_LogicalDisk to a timestamped JSON file for later comparison or auditing.