Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_PhysicalMemory: Finding Associated Objects (WQL ASSOCIATORS OF)

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

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Sorting Installed Hotfixes (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…

πŸ“œ VBScript (WSH)

Get Network Shares Report (VBScript)

Queries Win32_Share via WMI and prints Network Shares to the console β€” no PowerShell required.

🧬 WQL / PowerShell

Win32_StartupCommand: Filtering Startup Programs (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_CDROMDrive: CD/DVD Drives (WQL)

A minimal WQL reference query against Win32_CDROMDrive β€” the raw SELECT statement plus a one-line runner, useful for le…

🐍 Python 3.10+

Get Startup Programs Report (Python)

Uses wmic under the hood to report Startup Programs (Win32_StartupCommand) β€” no third-party packages required.

⚑ PowerShell 5.1+

Watch Operating System Info for Changes

Polls Win32_OperatingSystem on an interval and prints a line whenever the Operating System Info count changes β€” a light…

🧬 WQL / PowerShell

Win32_PointingDevice: Pointing Devices (WQL)

A minimal WQL reference query against Win32_PointingDevice β€” the raw SELECT statement plus a one-line runner, useful fo…

πŸ“œ VBScript (WSH)

Get System Drivers Report to File (VBScript)

Queries Win32_SystemDriver via WMI and writes System Drivers to a timestamped text file, handy for scheduled logon/logo…

🐍 Python 3.10+

Backup Local User Accounts to JSON (Python)

Snapshots Local User Accounts (Win32_UserAccount) to a timestamped JSON file for later comparison or auditing.

🟣 C# / .NET 6+

Get Computer System Info Report (C#)

Queries Win32_ComputerSystem via WMI (System.Management) and prints Computer System Info to the console.

πŸ–₯️ Batch (CMD)

Export Video Controllers to CSV (Batch)

Uses wmic to export Video Controllers (Win32_VideoController) to a timestamped CSV file.