Tag: wmi

750 script(s) tagged “wmi”

๐ŸŸฃ C# / .NET 6+

Get Operating System Info Report (C#)

Queries Win32_OperatingSystem via WMI (System.Management) and prints Operating System Info to the console.

โšก PowerShell 5.1+

Backup Physical Memory Modules List to JSON

Snapshots Physical Memory Modules from Win32_PhysicalMemory to a timestamped JSON file for later comparison or auditing.

โšก PowerShell 5.1+

Get Signed Drivers Report

Queries Win32_PnPSignedDriver via WMI and reports Signed Drivers in a formatted table, with an optional CSV export.

๐Ÿ Python 3.10+

Backup BIOS Info to JSON (Python)

Snapshots BIOS Info (Win32_BIOS) to a timestamped JSON file for later comparison or auditing.

๐Ÿงฌ 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โ€ฆ

๐Ÿ“œ VBScript (WSH)

Get Operating System Info Report (VBScript)

Queries Win32_OperatingSystem via WMI and prints Operating System Info to the console โ€” no PowerShell required.

๐Ÿงฌ 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โ€ฆ

โšก PowerShell 5.1+

Get Local User Accounts Report

Queries Win32_UserAccount via WMI and reports Local User Accounts in a formatted table, with an optional CSV export.

๐Ÿงฌ 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โ€ฆ

โšก PowerShell 5.1+

Get Network Shares Report

Queries Win32_Share via WMI and reports Network Shares in a formatted table, with an optional CSV export.

๐ŸŸฃ C# / .NET 6+

Get Video Controllers Report (C#)

Queries Win32_VideoController via WMI (System.Management) and prints Video Controllers to the console.

๐Ÿ“œ VBScript (WSH)

Get Keyboard Info Report to File (VBScript)

Queries Win32_Keyboard via WMI and writes Keyboard Info to a timestamped text file, handy for scheduled logon/logoff scโ€ฆ