Tag: wmi
750 script(s) tagged “wmi”
Win32_PhysicalMemory: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Physiβ¦
Win32_QuickFixEngineering: Sorting Installed Hotfixes (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β¦
Get Network Shares Report (VBScript)
Queries Win32_Share via WMI and prints Network Shares to the console β no PowerShell required.
Win32_StartupCommand: Filtering Startup Programs (WQL WHERE)
Shows the WQL WHERE clause syntax against Win32_StartupCommand, starting from a LIKE '%' wildcard you customize with a β¦
Win32_CDROMDrive: CD/DVD Drives (WQL)
A minimal WQL reference query against Win32_CDROMDrive β the raw SELECT statement plus a one-line runner, useful for leβ¦
Get Startup Programs Report (Python)
Uses wmic under the hood to report Startup Programs (Win32_StartupCommand) β no third-party packages required.
Watch Operating System Info for Changes
Polls Win32_OperatingSystem on an interval and prints a line whenever the Operating System Info count changes β a lightβ¦
Win32_PointingDevice: Pointing Devices (WQL)
A minimal WQL reference query against Win32_PointingDevice β the raw SELECT statement plus a one-line runner, useful foβ¦
Get System Drivers Report to File (VBScript)
Queries Win32_SystemDriver via WMI and writes System Drivers to a timestamped text file, handy for scheduled logon/logoβ¦
Backup Local User Accounts to JSON (Python)
Snapshots Local User Accounts (Win32_UserAccount) to a timestamped JSON file for later comparison or auditing.
Get Computer System Info Report (C#)
Queries Win32_ComputerSystem via WMI (System.Management) and prints Computer System Info to the console.
Export Video Controllers to CSV (Batch)
Uses wmic to export Video Controllers (Win32_VideoController) to a timestamped CSV file.