Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_OperatingSystem: Event-Driven Monitoring (WQL __InstanceCreationEvent)

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

⚑ PowerShell 5.1+

Backup Keyboard Info List to JSON

Snapshots Keyboard Info from Win32_Keyboard to a timestamped JSON file for later comparison or auditing.

🧬 WQL / PowerShell

Win32_ComputerSystemProduct: Querying Computer System Product Info Remotely (CIM Session)

Runs the same Win32_ComputerSystemProduct WQL query against a remote computer over a CIM session β€” the modern, WinRM-ba…

🐍 Python 3.10+

Export Network Shares to CSV (Python)

Exports Network Shares (Win32_Share) to a timestamped CSV file via wmic.

🐍 Python 3.10+

Export Computer System Info to CSV (Python)

Exports Computer System Info (Win32_ComputerSystem) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_CDROMDrive: Sorting CD/DVD Drives (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…

🐍 Python 3.10+

Backup Network Login Profiles to JSON (Python)

Snapshots Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped JSON file for later comparison or auditin…

🐍 Python 3.10+

Get Connected Monitors Report (Python)

Uses wmic under the hood to report Connected Monitors (Win32_DesktopMonitor) β€” no third-party packages required.

πŸ“„ JScript (WSH)

Get Local Groups Report (JScript)

Queries Win32_Group via WMI and prints Local Groups to the console β€” JScript, VBScript's WSH sibling language.

⚑ PowerShell 5.1+

Get Environment Variables Report

Queries Win32_Environment via WMI and reports Environment Variables in a formatted table, with an optional CSV export.

πŸ“Š VBA (Excel)

Export Logical Disks to CSV via WMI (VBA)

Queries Win32_LogicalDisk via WMI and writes every Logical Disks row straight to a CSV file in Documents, using plain V…

⚑ PowerShell 5.1+

Backup Startup Programs List to JSON

Snapshots Startup Programs from Win32_StartupCommand to a timestamped JSON file for later comparison or auditing.