Tag: wql

238 script(s) tagged “wql”

🧬 WQL / PowerShell

Win32_PageFileUsage: Page File Usage (WQL)

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

🧬 WQL / PowerShell

Win32_USBController: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_LogicalDisk: Querying Logical Disks Remotely (CIM Session)

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

🧬 WQL / PowerShell

Win32_OperatingSystem: Sorting Operating System Info (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: Battery Info (WQL)

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

🧬 WQL / PowerShell

Win32_SoundDevice: Querying Sound Devices Remotely (CIM Session)

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

🧬 WQL / PowerShell

Win32_NetworkAdapter: Network Adapters (WQL)

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

🧬 WQL / PowerShell

Win32_Environment: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🧬 WQL / PowerShell

Win32_Environment: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_StartupCommand: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_VideoController: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_VideoController: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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