Tag: wmi

750 script(s) tagged “wmi”

🧬 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…

🟣 C# / .NET 6+

Get Network Shares Report (C#)

Queries Win32_Share via WMI (System.Management) and prints Network Shares to the console.

📊 VBA (Excel)

Load Local Groups into Excel via WMI

Queries Win32_Group via GetObject("winmgmts:") and dumps every Local Groups row straight onto the active worksheet, no …

🧬 WQL / PowerShell

Win32_VideoController: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

📊 VBA (Excel)

Load Pointing Devices into Excel via WMI

Queries Win32_PointingDevice via GetObject("winmgmts:") and dumps every Pointing Devices row straight onto the active w…

🧬 WQL / PowerShell

Win32_SoundDevice: Sound Devices (WQL)

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

🧬 WQL / PowerShell

Win32_NetworkAdapter: Sorting Network Adapters (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_StartupCommand: Startup Programs (WQL)

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

📊 VBA (Excel)

Export Signed Drivers to CSV via WMI (VBA)

Queries Win32_PnPSignedDriver via WMI and writes every Signed Drivers row straight to a CSV file in Documents, using pl…

📜 VBScript (WSH)

Get Connected Monitors Report to File (VBScript)

Queries Win32_DesktopMonitor via WMI and writes Connected Monitors to a timestamped text file, handy for scheduled logo…

🧬 WQL / PowerShell

Win32_DiskDrive: Finding Associated Objects (WQL ASSOCIATORS OF)

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