Tag: wmi
750 script(s) tagged “wmi”
Win32_OperatingSystem: Event-Driven Monitoring (WQL __InstanceCreationEvent)
Subscribes to WMI's __InstanceCreationEvent for Win32_OperatingSystem via Register-CimIndicationEvent β real WQL event β¦
Backup Keyboard Info List to JSON
Snapshots Keyboard Info from Win32_Keyboard to a timestamped JSON file for later comparison or auditing.
Win32_ComputerSystemProduct: Querying Computer System Product Info Remotely (CIM Session)
Runs the same Win32_ComputerSystemProduct WQL query against a remote computer over a CIM session β the modern, WinRM-baβ¦
Export Network Shares to CSV (Python)
Exports Network Shares (Win32_Share) to a timestamped CSV file via wmic.
Export Computer System Info to CSV (Python)
Exports Computer System Info (Win32_ComputerSystem) to a timestamped CSV file via wmic.
Win32_CDROMDrive: Sorting CD/DVD 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β¦
Backup Network Login Profiles to JSON (Python)
Snapshots Network Login Profiles (Win32_NetworkLoginProfile) to a timestamped JSON file for later comparison or auditinβ¦
Get Connected Monitors Report (Python)
Uses wmic under the hood to report Connected Monitors (Win32_DesktopMonitor) β no third-party packages required.
Get Local Groups Report (JScript)
Queries Win32_Group via WMI and prints Local Groups to the console β JScript, VBScript's WSH sibling language.
Get Environment Variables Report
Queries Win32_Environment via WMI and reports Environment Variables in a formatted table, with an optional CSV export.
Export Logical Disks to CSV via WMI (VBA)
Queries Win32_LogicalDisk via WMI and writes every Logical Disks row straight to a CSV file in Documents, using plain Vβ¦
Backup Startup Programs List to JSON
Snapshots Startup Programs from Win32_StartupCommand to a timestamped JSON file for later comparison or auditing.