Tag: wmi

750 script(s) tagged “wmi”

πŸ“„ JScript (WSH)

Get Motherboard Info Report (JScript)

Queries Win32_BaseBoard via WMI and prints Motherboard Info to the console β€” JScript, VBScript's WSH sibling language.

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Filtering Installed Hotfixes (WQL WHERE)

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

🐍 Python 3.10+

Export Processes to CSV (Python)

Exports Processes (Win32_Process) to a timestamped CSV file via wmic.

🐍 Python 3.10+

Export Network Adapters to CSV (Python)

Exports Network Adapters (Win32_NetworkAdapter) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_NetworkAdapter: Event-Driven Monitoring (WQL __InstanceCreationEvent)

Subscribes to WMI's __InstanceCreationEvent for Win32_NetworkAdapter via Register-CimIndicationEvent β€” real WQL event q…

⚑ PowerShell 5.1+

Watch Logical Disks for Changes

Polls Win32_LogicalDisk on an interval and prints a line whenever the Logical Disks count changes β€” a lightweight way t…

🟣 C# / .NET 6+

Get Network Login Profiles Report (C#)

Queries Win32_NetworkLoginProfile via WMI (System.Management) and prints Network Login Profiles to the console.

🧬 WQL / PowerShell

Win32_StartupCommand: Sorting Startup Programs (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…

⚑ PowerShell 5.1+

Watch Computer System Info for Changes

Polls Win32_ComputerSystem on an interval and prints a line whenever the Computer System Info count changes β€” a lightwe…

🧬 WQL / PowerShell

Win32_BIOS: Finding Associated Objects (WQL ASSOCIATORS OF)

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

⚑ PowerShell 5.1+

Backup Installed MSI Products List to JSON

Snapshots Installed MSI Products from Win32_Product to a timestamped JSON file for later comparison or auditing.

πŸ–₯️ Batch (CMD)

Export Pointing Devices to CSV (Batch)

Uses wmic to export Pointing Devices (Win32_PointingDevice) to a timestamped CSV file.