Tag: wmi
750 script(s) tagged “wmi”
Get Motherboard Info Report (JScript)
Queries Win32_BaseBoard via WMI and prints Motherboard Info to the console β JScript, VBScript's WSH sibling language.
Win32_QuickFixEngineering: Filtering Installed Hotfixes (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_QuickFixEngineering, starting from a LIKE '%' wildcard you customize wiβ¦
Export Processes to CSV (Python)
Exports Processes (Win32_Process) to a timestamped CSV file via wmic.
Export Network Adapters to CSV (Python)
Exports Network Adapters (Win32_NetworkAdapter) to a timestamped CSV file via wmic.
Win32_NetworkAdapter: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_NetworkAdapter via Register-CimIndicationEvent β real WQL event qβ¦
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β¦
Get Network Login Profiles Report (C#)
Queries Win32_NetworkLoginProfile via WMI (System.Management) and prints Network Login Profiles to the console.
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β¦
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β¦
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 β¦
Backup Installed MSI Products List to JSON
Snapshots Installed MSI Products from Win32_Product to a timestamped JSON file for later comparison or auditing.
Export Pointing Devices to CSV (Batch)
Uses wmic to export Pointing Devices (Win32_PointingDevice) to a timestamped CSV file.