Tag: wmi

750 script(s) tagged “wmi”

📜 VBScript (WSH)

Get USB Controllers Report (VBScript)

Queries Win32_USBController via WMI and prints USB Controllers to the console — no PowerShell required.

🧬 WQL / PowerShell

Win32_DiskDrive: Querying Physical Disk Drives Remotely (CIM Session)

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

🟣 C# / .NET 6+

Get Motherboard Info Report (C#)

Queries Win32_BaseBoard via WMI (System.Management) and prints Motherboard Info to the console.

🧬 WQL / PowerShell

Win32_Share: Sorting Network Shares (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_Service: Querying Services Remotely (CIM Session)

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

🖥️ Batch (CMD)

Export Logical Disks to CSV (Batch)

Uses wmic to export Logical Disks (Win32_LogicalDisk) to a timestamped CSV file.

🧬 WQL / PowerShell

Win32_NetworkAdapterConfiguration: Querying Network Adapter Configuration Remotely (CIM Session)

Runs the same Win32_NetworkAdapterConfiguration WQL query against a remote computer over a CIM session — the modern, Wi…

🧬 WQL / PowerShell

Win32_BaseBoard: Discovering Available Properties (Get-CimClass)

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

⚡ PowerShell 5.1+

Watch Physical Disk Drives for Changes

Polls Win32_DiskDrive on an interval and prints a line whenever the Physical Disk Drives count changes — a lightweight …

📊 VBA (Excel)

Export Physical Disk Drives to CSV via WMI (VBA)

Queries Win32_DiskDrive via WMI and writes every Physical Disk Drives row straight to a CSV file in Documents, using pl…

⚡ PowerShell 5.1+

Backup Signed Drivers List to JSON

Snapshots Signed Drivers from Win32_PnPSignedDriver to a timestamped JSON file for later comparison or auditing.

🐍 Python 3.10+

Get Services Report (Python)

Uses wmic under the hood to report Services (Win32_Service) — no third-party packages required.