Tag: wmi

750 script(s) tagged “wmi”

🧬 WQL / PowerShell

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…

🐍 Python 3.10+

Export Services to CSV (Python)

Exports Services (Win32_Service) to a timestamped CSV file via wmic.

🟣 C# / .NET 6+

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.

🐍 Python 3.10+

Export System Drivers to CSV (Python)

Exports System Drivers (Win32_SystemDriver) to a timestamped CSV file via wmic.

⚡ PowerShell 5.1+

Backup Battery Info List to JSON

Snapshots Battery Info from Win32_Battery to a timestamped JSON file for later comparison or auditing.

🟣 C# / .NET 6+

Backup Startup Programs to JSON (C#)

Snapshots Startup Programs (Win32_StartupCommand) to a timestamped JSON file via System.Management and System.Text.Json.

🧬 WQL / PowerShell

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…

🐍 Python 3.10+

Backup Computer System Product Info to JSON (Python)

Snapshots Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped JSON file for later comparison or…

🧬 WQL / PowerShell

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…

📜 VBScript (WSH)

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…

⚡ PowerShell 5.1+

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…

📜 VBScript (WSH)

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 …