Tag: wmi

750 script(s) tagged “wmi”

📊 VBA (Excel)

Load Network Adapters into Excel via WMI

Queries Win32_NetworkAdapter via GetObject("winmgmts:") and dumps every Network Adapters row straight onto the active w…

🐍 Python 3.10+

Export Physical Disk Drives to CSV (Python)

Exports Physical Disk Drives (Win32_DiskDrive) to a timestamped CSV file via wmic.

🖥️ Batch (CMD)

Export Computer System Product Info to CSV (Batch)

Uses wmic to export Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped CSV file.

📜 VBScript (WSH)

Get Processor Info Report to File (VBScript)

Queries Win32_Processor via WMI and writes Processor Info to a timestamped text file, handy for scheduled logon/logoff …

🧬 WQL / PowerShell

Win32_Group: Querying Local Groups Remotely (CIM Session)

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

🟣 C# / .NET 6+

Get Services Report (C#)

Queries Win32_Service via WMI (System.Management) and prints Services to the console.

📊 VBA (Excel)

Load Connected Monitors into Excel via WMI

Queries Win32_DesktopMonitor via GetObject("winmgmts:") and dumps every Connected Monitors row straight onto the active…

🧬 WQL / PowerShell

Win32_Battery: Finding Associated Objects (WQL ASSOCIATORS OF)

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

⚡ PowerShell 5.1+

Backup Page File Usage List to JSON

Snapshots Page File Usage from Win32_PageFileUsage to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_Product: Filtering Installed MSI Products (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_Product, starting from a LIKE '%' wildcard you customize with a real se…

📊 VBA (Excel)

Export Local Groups to CSV via WMI (VBA)

Queries Win32_Group via WMI and writes every Local Groups row straight to a CSV file in Documents, using plain VBA file…

🧬 WQL / PowerShell

Win32_CDROMDrive: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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