Tag: wmi
750 script(s) tagged “wmi”
Win32_Product: Discovering Available Properties (Get-CimClass)
Uses Get-CimClass to list every real property and method Win32_Product exposes on the current system, instead of guessi…
Win32_NetworkLoginProfile: Sorting Network Login Profiles (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…
Win32_Battery: Filtering Battery Info (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_Battery, starting from a LIKE '%' wildcard you customize with a real se…
Get Page File Usage Report
Queries Win32_PageFileUsage via WMI and reports Page File Usage in a formatted table, with an optional CSV export.
Get Processes Report
Queries Win32_Process via WMI and reports Processes in a formatted table, with an optional CSV export.
Get Sound Devices Report (Python)
Uses wmic under the hood to report Sound Devices (Win32_SoundDevice) — no third-party packages required.
Win32_DesktopMonitor: Discovering Available Properties (Get-CimClass)
Uses Get-CimClass to list every real property and method Win32_DesktopMonitor exposes on the current system, instead of…
Win32_PnPSignedDriver: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_PnPSi…
Backup Installed MSI Products to JSON (C#)
Snapshots Installed MSI Products (Win32_Product) to a timestamped JSON file via System.Management and System.Text.Json.
Get Local Groups Report to File (VBScript)
Queries Win32_Group via WMI and writes Local Groups to a timestamped text file, handy for scheduled logon/logoff script…
Export Network Login Profiles to CSV (Batch)
Uses wmic to export Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped CSV file.
Backup Signed Drivers to JSON (C#)
Snapshots Signed Drivers (Win32_PnPSignedDriver) to a timestamped JSON file via System.Management and System.Text.Json.