Tag: wmi

750 script(s) tagged “wmi”

🐍 Python 3.10+

Export Installed Hotfixes to CSV (Python)

Exports Installed Hotfixes (Win32_QuickFixEngineering) to a timestamped CSV file via wmic.

⚡ PowerShell 5.1+

Get Printers Report

Queries Win32_Printer via WMI and reports Printers in a formatted table, with an optional CSV export.

🖥️ Batch (CMD)

Export Network Shares to CSV (Batch)

Uses wmic to export Network Shares (Win32_Share) to a timestamped CSV file.

🖥️ Batch (CMD)

Export Installed Hotfixes to CSV (Batch)

Uses wmic to export Installed Hotfixes (Win32_QuickFixEngineering) to a timestamped CSV file.

🧬 WQL / PowerShell

Win32_PointingDevice: Discovering Available Properties (Get-CimClass)

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

🐍 Python 3.10+

Get Processor Info Report (Python)

Uses wmic under the hood to report Processor Info (Win32_Processor) — no third-party packages required.

🧬 WQL / PowerShell

Win32_UserAccount: Sorting Local User Accounts (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_BIOS: Querying BIOS Info Remotely (CIM Session)

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

🧬 WQL / PowerShell

Win32_PageFileUsage: Page File Usage (WQL)

A minimal WQL reference query against Win32_PageFileUsage — the raw SELECT statement plus a one-line runner, useful for…

📊 VBA (Excel)

Load Network Login Profiles into Excel via WMI

Queries Win32_NetworkLoginProfile via GetObject("winmgmts:") and dumps every Network Login Profiles row straight onto t…

📜 VBScript (WSH)

Get Physical Memory Modules Report to File (VBScript)

Queries Win32_PhysicalMemory via WMI and writes Physical Memory Modules to a timestamped text file, handy for scheduled…

🧬 WQL / PowerShell

Win32_USBController: Finding Associated Objects (WQL ASSOCIATORS OF)

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