Tag: wmi

750 script(s) tagged “wmi”

⚡ PowerShell 5.1+

Get Sound Devices Report

Queries Win32_SoundDevice via WMI and reports Sound Devices in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_NetworkAdapter: Discovering Available Properties (Get-CimClass)

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

📄 JScript (WSH)

Get Installed MSI Products Report (JScript)

Queries Win32_Product via WMI and prints Installed MSI Products to the console — JScript, VBScript's WSH sibling langua…

📄 JScript (WSH)

Get Local User Accounts Report (JScript)

Queries Win32_UserAccount via WMI and prints Local User Accounts to the console — JScript, VBScript's WSH sibling langu…

🧬 WQL / PowerShell

Win32_DesktopMonitor: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_USBController: USB Controllers (WQL)

A minimal WQL reference query against Win32_USBController — the raw SELECT statement plus a one-line runner, useful for…

🟣 C# / .NET 6+

Get Local User Accounts Report (C#)

Queries Win32_UserAccount via WMI (System.Management) and prints Local User Accounts to the console.

📜 VBScript (WSH)

Get Local Groups Report (VBScript)

Queries Win32_Group via WMI and prints Local Groups to the console — no PowerShell required.

⚡ PowerShell 5.1+

Get Battery Info Report

Queries Win32_Battery via WMI and reports Battery Info in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_ComputerSystemProduct: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_ComputerSystemProduct via Register-CimIndicationEvent — real WQL …

📄 JScript (WSH)

Get Network Adapters Report (JScript)

Queries Win32_NetworkAdapter via WMI and prints Network Adapters to the console — JScript, VBScript's WSH sibling langu…

🧬 WQL / PowerShell

Win32_NetworkAdapter: Filtering Network Adapters (WQL WHERE)

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