Tag: wmi
750 script(s) tagged “wmi”
Load Network Adapters into Excel via WMI
Queries Win32_NetworkAdapter via GetObject("winmgmts:") and dumps every Network Adapters row straight onto the active w…
Export Physical Disk Drives to CSV (Python)
Exports Physical Disk Drives (Win32_DiskDrive) to a timestamped CSV file via wmic.
Export Computer System Product Info to CSV (Batch)
Uses wmic to export Computer System Product Info (Win32_ComputerSystemProduct) to a timestamped CSV file.
Get Processor Info Report to File (VBScript)
Queries Win32_Processor via WMI and writes Processor Info to a timestamped text file, handy for scheduled logon/logoff …
Win32_Group: Querying Local Groups Remotely (CIM Session)
Runs the same Win32_Group WQL query against a remote computer over a CIM session — the modern, WinRM-based replacement …
Get Services Report (C#)
Queries Win32_Service via WMI (System.Management) and prints Services to the console.
Load Connected Monitors into Excel via WMI
Queries Win32_DesktopMonitor via GetObject("winmgmts:") and dumps every Connected Monitors row straight onto the active…
Win32_Battery: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Batte…
Backup Page File Usage List to JSON
Snapshots Page File Usage from Win32_PageFileUsage to a timestamped JSON file for later comparison or auditing.
Win32_Product: Filtering Installed MSI Products (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_Product, starting from a LIKE '%' wildcard you customize with a real se…
Export Local Groups to CSV via WMI (VBA)
Queries Win32_Group via WMI and writes every Local Groups row straight to a CSV file in Documents, using plain VBA file…
Win32_CDROMDrive: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_CDROMDrive via Register-CimIndicationEvent — real WQL event query…