Tag: wmi

750 script(s) tagged “wmi”

🖥️ Batch (CMD)

Export Local User Accounts to CSV (Batch)

Uses wmic to export Local User Accounts (Win32_UserAccount) to a timestamped CSV file.

🧬 WQL / PowerShell

Win32_USBController: Querying USB Controllers Remotely (CIM Session)

Runs the same Win32_USBController WQL query against a remote computer over a CIM session — the modern, WinRM-based repl…

📊 VBA (Excel)

Export CD/DVD Drives to CSV via WMI (VBA)

Queries Win32_CDROMDrive via WMI and writes every CD/DVD Drives row straight to a CSV file in Documents, using plain VB…

🐍 Python 3.10+

Export Operating System Info to CSV (Python)

Exports Operating System Info (Win32_OperatingSystem) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_Printer: Querying Printers Remotely (CIM Session)

Runs the same Win32_Printer WQL query against a remote computer over a CIM session — the modern, WinRM-based replacemen…

📜 VBScript (WSH)

Get Time Zone Settings Report to File (VBScript)

Queries Win32_TimeZone via WMI and writes Time Zone Settings to a timestamped text file, handy for scheduled logon/logo…

🧬 WQL / PowerShell

Win32_PnPSignedDriver: Filtering Signed Drivers (WQL WHERE)

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

🧬 WQL / PowerShell

Win32_Environment: Sorting Environment Variables (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…

🟣 C# / .NET 6+

Get Installed MSI Products Report (C#)

Queries Win32_Product via WMI (System.Management) and prints Installed MSI Products to the console.

🧬 WQL / PowerShell

Win32_BIOS: Filtering BIOS Info (WQL WHERE)

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

🐍 Python 3.10+

Export Physical Memory Modules to CSV (Python)

Exports Physical Memory Modules (Win32_PhysicalMemory) to a timestamped CSV file via wmic.

🧬 WQL / PowerShell

Win32_QuickFixEngineering: Querying Installed Hotfixes Remotely (CIM Session)

Runs the same Win32_QuickFixEngineering WQL query against a remote computer over a CIM session — the modern, WinRM-base…