Tag: wmi
750 script(s) tagged “wmi”
Backup Computer System Info to JSON (C#)
Snapshots Computer System Info (Win32_ComputerSystem) to a timestamped JSON file via System.Management and System.Text.β¦
Win32_SystemDriver: System Drivers (WQL)
A minimal WQL reference query against Win32_SystemDriver β the raw SELECT statement plus a one-line runner, useful for β¦
Get Connected Monitors Report (VBScript)
Queries Win32_DesktopMonitor via WMI and prints Connected Monitors to the console β no PowerShell required.
Win32_Process: Sorting Processes (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 Keyboard Info Report (Batch)
Uses wmic to list Keyboard Info (Win32_Keyboard) straight from the command line.
Win32_UserAccount: Filtering Local User Accounts (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_UserAccount, starting from a LIKE '%' wildcard you customize with a reaβ¦
Win32_Keyboard: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Keyboβ¦
Export Environment Variables to CSV (Python)
Exports Environment Variables (Win32_Environment) to a timestamped CSV file via wmic.
Get Physical Disk Drives Report (Python)
Uses wmic under the hood to report Physical Disk Drives (Win32_DiskDrive) β no third-party packages required.
Get System Drivers Report (C#)
Queries Win32_SystemDriver via WMI (System.Management) and prints System Drivers to the console.
Get Computer System Info Report (Batch)
Uses wmic to list Computer System Info (Win32_ComputerSystem) straight from the command line.
Win32_Printer: Printers (WQL)
A minimal WQL reference query against Win32_Printer β the raw SELECT statement plus a one-line runner, useful for learnβ¦