Tag: wmi
750 script(s) tagged “wmi”
Win32_Service: Discovering Available Properties (Get-CimClass)
Uses Get-CimClass to list every real property and method Win32_Service exposes on the current system, instead of guessiβ¦
Win32_PhysicalMemory: Physical Memory Modules (WQL)
A minimal WQL reference query against Win32_PhysicalMemory β the raw SELECT statement plus a one-line runner, useful foβ¦
Win32_VideoController: Sorting Video Controllers (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β¦
Get Services Report (Batch)
Uses wmic to list Services (Win32_Service) straight from the command line.
Export Network Adapters to CSV (Batch)
Uses wmic to export Network Adapters (Win32_NetworkAdapter) to a timestamped CSV file.
Backup Network Adapters to JSON (C#)
Snapshots Network Adapters (Win32_NetworkAdapter) to a timestamped JSON file via System.Management and System.Text.Json.
Get Network Adapters Report (Batch)
Uses wmic to list Network Adapters (Win32_NetworkAdapter) straight from the command line.
Export Time Zone Settings to CSV (Python)
Exports Time Zone Settings (Win32_TimeZone) to a timestamped CSV file via wmic.
Export Installed MSI Products to CSV (Python)
Exports Installed MSI Products (Win32_Product) to a timestamped CSV file via wmic.
Get System Drivers Report (Python)
Uses wmic under the hood to report System Drivers (Win32_SystemDriver) β no third-party packages required.
Get Sound Devices Report (JScript)
Queries Win32_SoundDevice via WMI and prints Sound Devices to the console β JScript, VBScript's WSH sibling language.
Get Computer System Product Info Report to File (VBScript)
Queries Win32_ComputerSystemProduct via WMI and writes Computer System Product Info to a timestamped text file, handy fβ¦