Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Service: Sorting Services (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…

🖥️ Batch (CMD)

Export Physical Memory Modules to CSV (Batch)

Uses wmic to export Physical Memory Modules (Win32_PhysicalMemory) to a timestamped CSV file.

🖥️ Batch (CMD)

Export Signed Drivers to CSV (Batch)

Uses wmic to export Signed Drivers (Win32_PnPSignedDriver) to a timestamped CSV file.

🐍 Python 3.10+

Get Logical Disks Report (Python)

Uses wmic under the hood to report Logical Disks (Win32_LogicalDisk) — no third-party packages required.

📜 VBScript (WSH)

Get Network Adapter Configuration Report (VBScript)

Queries Win32_NetworkAdapterConfiguration via WMI and prints Network Adapter Configuration to the console — no PowerShe…

🐍 Python 3.10+

Backup Page File Usage to JSON (Python)

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

🧬 WQL / PowerShell

Win32_UserAccount: Finding Associated Objects (WQL ASSOCIATORS OF)

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

📊 VBA (Excel)

Load CD/DVD Drives into Excel via WMI

Queries Win32_CDROMDrive via GetObject("winmgmts:") and dumps every CD/DVD Drives row straight onto the active workshee…

🧬 WQL / PowerShell

Win32_Printer: Finding Associated Objects (WQL ASSOCIATORS OF)

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

📊 VBA (Excel)

Export USB Controllers to CSV via WMI (VBA)

Queries Win32_USBController via WMI and writes every USB Controllers row straight to a CSV file in Documents, using pla…

📜 VBScript (WSH)

Get Installed MSI Products Report to File (VBScript)

Queries Win32_Product via WMI and writes Installed MSI Products to a timestamped text file, handy for scheduled logon/l…

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Querying Network Login Profiles Remotely (CIM Session)

Runs the same Win32_NetworkLoginProfile WQL query against a remote computer over a CIM session — the modern, WinRM-base…