Tag: wmi
750 script(s) tagged “wmi”
Win32_PageFileUsage: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_PageF…
Export Services to CSV (Python)
Exports Services (Win32_Service) to a timestamped CSV file via wmic.
Backup CD/DVD Drives to JSON (C#)
Snapshots CD/DVD Drives (Win32_CDROMDrive) to a timestamped JSON file via System.Management and System.Text.Json.
Export System Drivers to CSV (Python)
Exports System Drivers (Win32_SystemDriver) to a timestamped CSV file via wmic.
Backup Battery Info List to JSON
Snapshots Battery Info from Win32_Battery to a timestamped JSON file for later comparison or auditing.
Backup Startup Programs to JSON (C#)
Snapshots Startup Programs (Win32_StartupCommand) to a timestamped JSON file via System.Management and System.Text.Json.
Win32_Printer: Filtering Printers (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_Printer, starting from a LIKE '%' wildcard you customize with a real se…
Backup Computer System Product Info to JSON (Python)
Snapshots Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped JSON file for later comparison or…
Win32_Keyboard: Querying Keyboard Info Remotely (CIM Session)
Runs the same Win32_Keyboard WQL query against a remote computer over a CIM session — the modern, WinRM-based replaceme…
Get Battery Info Report to File (VBScript)
Queries Win32_Battery via WMI and writes Battery Info to a timestamped text file, handy for scheduled logon/logoff scri…
Watch CD/DVD Drives for Changes
Polls Win32_CDROMDrive on an interval and prints a line whenever the CD/DVD Drives count changes — a lightweight way to…
Get CD/DVD Drives Report to File (VBScript)
Queries Win32_CDROMDrive via WMI and writes CD/DVD Drives to a timestamped text file, handy for scheduled logon/logoff …