Tag: wql

238 script(s) tagged “wql”

🧬 WQL / PowerShell

Win32_Keyboard: Sorting Keyboard 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_DiskDrive: Filtering Physical Disk Drives (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_Group: Sorting Local Groups (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_USBController: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_NetworkAdapter: Querying Network Adapters Remotely (CIM Session)

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

🧬 WQL / PowerShell

Win32_USBController: Sorting USB 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…

🧬 WQL / PowerShell

Win32_ComputerSystem: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_Group: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

🧬 WQL / PowerShell

Win32_Processor: Sorting Processor 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_SoundDevice: Sorting Sound Devices (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_LogicalDisk: Filtering Logical Disks (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_Product: Installed MSI Products (WQL)

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