Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

Win32_DiskDrive: Filtering Physical Disk Drives (WQL WHERE)

Shows the WQL WHERE clause syntax against Win32_DiskDrive, starting from a LIKE '%' wildcard you customize with a real …

šŸ Python 3.10+

Get Local Groups Report (Python)

Uses wmic under the hood to report Local Groups (Win32_Group) — no third-party packages required.

šŸ–„ļø Batch (CMD)

Export Sound Devices to CSV (Batch)

Uses wmic to export Sound Devices (Win32_SoundDevice) to a timestamped CSV file.

🟣 C# / .NET 6+

Get Battery Info Report (C#)

Queries Win32_Battery via WMI (System.Management) and prints Battery Info to the console.

⚔ PowerShell 5.1+

Backup Network Shares List to JSON

Snapshots Network Shares from Win32_Share to a timestamped JSON file for later comparison or auditing.

šŸ Python 3.10+

Get Signed Drivers Report (Python)

Uses wmic under the hood to report Signed Drivers (Win32_PnPSignedDriver) — no third-party packages required.

🧬 WQL / PowerShell

Win32_Group: Sorting Local Groups (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 Connected Monitors to JSON (Python)

Snapshots Connected Monitors (Win32_DesktopMonitor) to a timestamped JSON file for later comparison or auditing.

⚔ PowerShell 5.1+

Backup Sound Devices List to JSON

Snapshots Sound Devices from Win32_SoundDevice to a timestamped JSON file for later comparison or auditing.

🟣 C# / .NET 6+

Backup BIOS Info to JSON (C#)

Snapshots BIOS Info (Win32_BIOS) to a timestamped JSON file via System.Management and System.Text.Json.

⚔ PowerShell 5.1+

Get Connected Monitors Report

Queries Win32_DesktopMonitor via WMI and reports Connected Monitors in a formatted table, with an optional CSV export.

šŸ Python 3.10+

Get Network Adapter Configuration Report (Python)

Uses wmic under the hood to report Network Adapter Configuration (Win32_NetworkAdapterConfiguration) — no third-party p…