Tag: wmi
750 script(s) tagged “wmi”
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…
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…
Get Network Shares Report (C#)
Queries Win32_Share via WMI (System.Management) and prints Network Shares to the console.
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 …
Win32_VideoController: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_VideoController via Register-CimIndicationEvent — real WQL event …
Load Pointing Devices into Excel via WMI
Queries Win32_PointingDevice via GetObject("winmgmts:") and dumps every Pointing Devices row straight onto the active w…
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…
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…
Win32_StartupCommand: Startup Programs (WQL)
A minimal WQL reference query against Win32_StartupCommand — the raw SELECT statement plus a one-line runner, useful fo…
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…
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…
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…