Tag: wmi
750 script(s) tagged “wmi”
Load Local User Accounts into Excel via WMI
Queries Win32_UserAccount via GetObject("winmgmts:") and dumps every Local User Accounts row straight onto the active wβ¦
Get Startup Programs Report (Batch)
Uses wmic to list Startup Programs (Win32_StartupCommand) straight from the command line.
Win32_VideoController: Video Controllers (WQL)
A minimal WQL reference query against Win32_VideoController β the raw SELECT statement plus a one-line runner, useful fβ¦
Win32_PhysicalMemory: Discovering Available Properties (Get-CimClass)
Uses Get-CimClass to list every real property and method Win32_PhysicalMemory exposes on the current system, instead ofβ¦
Export Pointing Devices to CSV via WMI (VBA)
Queries Win32_PointingDevice via WMI and writes every Pointing Devices row straight to a CSV file in Documents, using pβ¦
Win32_ComputerSystemProduct: Computer System Product Info (WQL)
A minimal WQL reference query against Win32_ComputerSystemProduct β the raw SELECT statement plus a one-line runner, usβ¦
Get Operating System Info Report (JScript)
Queries Win32_OperatingSystem via WMI and prints Operating System Info to the console β JScript, VBScript's WSH siblingβ¦
Backup CD/DVD Drives List to JSON
Snapshots CD/DVD Drives from Win32_CDROMDrive to a timestamped JSON file for later comparison or auditing.
Watch Installed MSI Products for Changes
Polls Win32_Product on an interval and prints a line whenever the Installed MSI Products count changes β a lightweight β¦
Win32_BaseBoard: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_BaseBβ¦
Get Pointing Devices Report (VBScript)
Queries Win32_PointingDevice via WMI and prints Pointing Devices to the console β no PowerShell required.
Win32_DiskDrive: Sorting Physical Disk Drives (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β¦