Tag: wql

238 script(s) tagged “wql”

🧬 WQL / PowerShell

Win32_Product: Querying Installed MSI Products Remotely (CIM Session)

Runs the same Win32_Product WQL query against a remote computer over a CIM session — the modern, WinRM-based replacemen…

🧬 WQL / PowerShell

Win32_ComputerSystem: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_Keyboard: Filtering Keyboard Info (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_PointingDevice: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_VideoController: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_Share: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Filtering Installed Hotfixes (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_NetworkAdapter: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_NetworkAdapter via Register-CimIndicationEvent — real WQL event q…

🧬 WQL / PowerShell

Win32_StartupCommand: Sorting Startup Programs (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_BIOS: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_BIOS: BIOS Info (WQL)

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

🧬 WQL / PowerShell

Win32_Share: Finding Associated Objects (WQL ASSOCIATORS OF)

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