Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_Environment: Environment Variables (WQL)

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

⚡ PowerShell 5.1+

Get Pointing Devices Report

Queries Win32_PointingDevice via WMI and reports Pointing Devices in a formatted table, with an optional CSV export.

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🖥️ Batch (CMD)

Export Operating System Info to CSV (Batch)

Uses wmic to export Operating System Info (Win32_OperatingSystem) to a timestamped CSV file.

🐍 Python 3.10+

Export Local User Accounts to CSV (Python)

Exports Local User Accounts (Win32_UserAccount) to a timestamped CSV file via wmic.

📜 VBScript (WSH)

Get BIOS Info Report to File (VBScript)

Queries Win32_BIOS via WMI and writes BIOS Info to a timestamped text file, handy for scheduled logon/logoff scripts.

🧬 WQL / PowerShell

Win32_NetworkLoginProfile: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_UserAccount: Discovering Available Properties (Get-CimClass)

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

📜 VBScript (WSH)

Get Network Login Profiles Report to File (VBScript)

Queries Win32_NetworkLoginProfile via WMI and writes Network Login Profiles to a timestamped text file, handy for sched…

🟣 C# / .NET 6+

Backup System Drivers to JSON (C#)

Snapshots System Drivers (Win32_SystemDriver) to a timestamped JSON file via System.Management and System.Text.Json.

🧬 WQL / PowerShell

Win32_NetworkAdapterConfiguration: Network Adapter Configuration (WQL)

A minimal WQL reference query against Win32_NetworkAdapterConfiguration — the raw SELECT statement plus a one-line runn…

🐍 Python 3.10+

Backup Services to JSON (Python)

Snapshots Services (Win32_Service) to a timestamped JSON file for later comparison or auditing.