Tag: wmi

750 script(s) tagged “wmi”

⚑ PowerShell 5.1+

Get Local Groups Report

Queries Win32_Group via WMI and reports Local Groups in a formatted table, with an optional CSV export.

🐍 Python 3.10+

Get Network Adapters Report (Python)

Uses wmic under the hood to report Network Adapters (Win32_NetworkAdapter) β€” no third-party packages required.

πŸ–₯️ Batch (CMD)

Export System Drivers to CSV (Batch)

Uses wmic to export System Drivers (Win32_SystemDriver) to a timestamped CSV file.

🟣 C# / .NET 6+

Backup Battery Info to JSON (C#)

Snapshots Battery Info (Win32_Battery) to a timestamped JSON file via System.Management and System.Text.Json.

πŸ“„ JScript (WSH)

Get Processes Report (JScript)

Queries Win32_Process via WMI and prints Processes to the console β€” JScript, VBScript's WSH sibling language.

⚑ PowerShell 5.1+

Get System Drivers Report

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

🟣 C# / .NET 6+

Get Connected Monitors Report (C#)

Queries Win32_DesktopMonitor via WMI (System.Management) and prints Connected Monitors to the console.

πŸ“Š VBA (Excel)

Load Printers into Excel via WMI

Queries Win32_Printer via GetObject("winmgmts:") and dumps every Printers row straight onto the active worksheet, no Po…

πŸ“Š VBA (Excel)

Export System Drivers to CSV via WMI (VBA)

Queries Win32_SystemDriver via WMI and writes every System Drivers row straight to a CSV file in Documents, using plain…

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

πŸ“œ VBScript (WSH)

Get Services Report to File (VBScript)

Queries Win32_Service via WMI and writes Services to a timestamped text file, handy for scheduled logon/logoff scripts.

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