Tag: wmi

750 script(s) tagged “wmi”

🟣 C# / .NET 6+

Backup Network Login Profiles to JSON (C#)

Snapshots Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped JSON file via System.Management and Syste…

🧬 WQL / PowerShell

Win32_NetworkAdapter: Finding Associated Objects (WQL ASSOCIATORS OF)

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

⚡ PowerShell 5.1+

Backup Network Login Profiles List to JSON

Snapshots Network Login Profiles from Win32_NetworkLoginProfile to a timestamped JSON file for later comparison or audi…

🖥️ Batch (CMD)

Get Environment Variables Report (Batch)

Uses wmic to list Environment Variables (Win32_Environment) straight from the command line.

🧬 WQL / PowerShell

Win32_Processor: Filtering Processor Info (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_Process: Filtering Processes (WQL WHERE)

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

🐍 Python 3.10+

Export Printers to CSV (Python)

Exports Printers (Win32_Printer) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_PhysicalMemory: Querying Physical Memory Modules Remotely (CIM Session)

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

🖥️ Batch (CMD)

Get Computer System Product Info Report (Batch)

Uses wmic to list Computer System Product Info (Win32_ComputerSystemProduct) straight from the command line.

📊 VBA (Excel)

Export Network Adapters to CSV via WMI (VBA)

Queries Win32_NetworkAdapter via WMI and writes every Network Adapters row straight to a CSV file in Documents, using p…

🧬 WQL / PowerShell

Win32_TimeZone: Discovering Available Properties (Get-CimClass)

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

🧬 WQL / PowerShell

Win32_OperatingSystem: Operating System Info (WQL)

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