Tag: wmi
750 script(s) tagged “wmi”
Get BIOS Info Report (Batch)
Uses wmic to list BIOS Info (Win32_BIOS) straight from the command line.
Win32_ComputerSystem: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_ComputerSystem via Register-CimIndicationEvent β real WQL event qβ¦
Export CD/DVD Drives to CSV (Python)
Exports CD/DVD Drives (Win32_CDROMDrive) to a timestamped CSV file via wmic.
Load Services into Excel via WMI
Queries Win32_Service via GetObject("winmgmts:") and dumps every Services row straight onto the active worksheet, no Poβ¦
Get Motherboard Info Report
Queries Win32_BaseBoard via WMI and reports Motherboard Info in a formatted table, with an optional CSV export.
Get Startup Programs Report to File (VBScript)
Queries Win32_StartupCommand via WMI and writes Startup Programs to a timestamped text file, handy for scheduled logon/β¦
Backup Signed Drivers to JSON (Python)
Snapshots Signed Drivers (Win32_PnPSignedDriver) to a timestamped JSON file for later comparison or auditing.
Win32_DesktopMonitor: Sorting Connected Monitors (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β¦
Win32_Process: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Proceβ¦
Get Video Controllers Report
Queries Win32_VideoController via WMI and reports Video Controllers in a formatted table, with an optional CSV export.
Export Processor Info to CSV via WMI (VBA)
Queries Win32_Processor via WMI and writes every Processor Info row straight to a CSV file in Documents, using plain VBβ¦
Win32_Processor: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_Processor via Register-CimIndicationEvent β real WQL event query β¦