Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Product: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Sorting Network Login Profiles (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…

🧬 WQL / PowerShell

Win32_Battery: Filtering Battery Info (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_Battery, starting from a LIKE '%' wildcard you customize with a real se…

⚡ PowerShell 5.1+

Get Page File Usage Report

Queries Win32_PageFileUsage via WMI and reports Page File Usage in a formatted table, with an optional CSV export.

⚡ PowerShell 5.1+

Get Processes Report

Queries Win32_Process via WMI and reports Processes in a formatted table, with an optional CSV export.

🐍 Python 3.10+

Get Sound Devices Report (Python)

Uses wmic under the hood to report Sound Devices (Win32_SoundDevice) — no third-party packages required.

🧬 WQL / PowerShell

Win32_DesktopMonitor: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_PnPSignedDriver: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🟣 C# / .NET 6+

Backup Installed MSI Products to JSON (C#)

Snapshots Installed MSI Products (Win32_Product) to a timestamped JSON file via System.Management and System.Text.Json.

📜 VBScript (WSH)

Get Local Groups Report to File (VBScript)

Queries Win32_Group via WMI and writes Local Groups to a timestamped text file, handy for scheduled logon/logoff script…

🖥️ Batch (CMD)

Export Network Login Profiles to CSV (Batch)

Uses wmic to export Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped CSV file.

🟣 C# / .NET 6+

Backup Signed Drivers to JSON (C#)

Snapshots Signed Drivers (Win32_PnPSignedDriver) to a timestamped JSON file via System.Management and System.Text.Json.