Tag: wmi

750 script(s) tagged “wmi”

🟣 C# / .NET 6+

Backup Computer System Info to JSON (C#)

Snapshots Computer System Info (Win32_ComputerSystem) to a timestamped JSON file via System.Management and System.Text.…

🧬 WQL / PowerShell

Win32_SystemDriver: System Drivers (WQL)

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

πŸ“œ VBScript (WSH)

Get Connected Monitors Report (VBScript)

Queries Win32_DesktopMonitor via WMI and prints Connected Monitors to the console β€” no PowerShell required.

🧬 WQL / PowerShell

Win32_Process: Sorting Processes (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)

Get Keyboard Info Report (Batch)

Uses wmic to list Keyboard Info (Win32_Keyboard) straight from the command line.

🧬 WQL / PowerShell

Win32_UserAccount: Filtering Local User Accounts (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_UserAccount, starting from a LIKE '%' wildcard you customize with a rea…

🧬 WQL / PowerShell

Win32_Keyboard: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🐍 Python 3.10+

Export Environment Variables to CSV (Python)

Exports Environment Variables (Win32_Environment) to a timestamped CSV file via wmic.

🐍 Python 3.10+

Get Physical Disk Drives Report (Python)

Uses wmic under the hood to report Physical Disk Drives (Win32_DiskDrive) β€” no third-party packages required.

🟣 C# / .NET 6+

Get System Drivers Report (C#)

Queries Win32_SystemDriver via WMI (System.Management) and prints System Drivers to the console.

πŸ–₯️ Batch (CMD)

Get Computer System Info Report (Batch)

Uses wmic to list Computer System Info (Win32_ComputerSystem) straight from the command line.

🧬 WQL / PowerShell

Win32_Printer: Printers (WQL)

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