Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Service: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_PhysicalMemory: Physical Memory Modules (WQL)

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

🧬 WQL / PowerShell

Win32_VideoController: Sorting Video Controllers (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 Services Report (Batch)

Uses wmic to list Services (Win32_Service) straight from the command line.

πŸ–₯️ Batch (CMD)

Export Network Adapters to CSV (Batch)

Uses wmic to export Network Adapters (Win32_NetworkAdapter) to a timestamped CSV file.

🟣 C# / .NET 6+

Backup Network Adapters to JSON (C#)

Snapshots Network Adapters (Win32_NetworkAdapter) to a timestamped JSON file via System.Management and System.Text.Json.

πŸ–₯️ Batch (CMD)

Get Network Adapters Report (Batch)

Uses wmic to list Network Adapters (Win32_NetworkAdapter) straight from the command line.

🐍 Python 3.10+

Export Time Zone Settings to CSV (Python)

Exports Time Zone Settings (Win32_TimeZone) to a timestamped CSV file via wmic.

🐍 Python 3.10+

Export Installed MSI Products to CSV (Python)

Exports Installed MSI Products (Win32_Product) to a timestamped CSV file via wmic.

🐍 Python 3.10+

Get System Drivers Report (Python)

Uses wmic under the hood to report System Drivers (Win32_SystemDriver) β€” no third-party packages required.

πŸ“„ JScript (WSH)

Get Sound Devices Report (JScript)

Queries Win32_SoundDevice via WMI and prints Sound Devices to the console β€” JScript, VBScript's WSH sibling language.

πŸ“œ VBScript (WSH)

Get Computer System Product Info Report to File (VBScript)

Queries Win32_ComputerSystemProduct via WMI and writes Computer System Product Info to a timestamped text file, handy f…