Tag: wmi
750 script(s) tagged “wmi”
Win32_Service: Sorting Services (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…
Export Physical Memory Modules to CSV (Batch)
Uses wmic to export Physical Memory Modules (Win32_PhysicalMemory) to a timestamped CSV file.
Export Signed Drivers to CSV (Batch)
Uses wmic to export Signed Drivers (Win32_PnPSignedDriver) to a timestamped CSV file.
Get Logical Disks Report (Python)
Uses wmic under the hood to report Logical Disks (Win32_LogicalDisk) — no third-party packages required.
Get Network Adapter Configuration Report (VBScript)
Queries Win32_NetworkAdapterConfiguration via WMI and prints Network Adapter Configuration to the console — no PowerShe…
Backup Page File Usage to JSON (Python)
Snapshots Page File Usage (Win32_PageFileUsage) to a timestamped JSON file for later comparison or auditing.
Win32_UserAccount: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_UserA…
Load CD/DVD Drives into Excel via WMI
Queries Win32_CDROMDrive via GetObject("winmgmts:") and dumps every CD/DVD Drives row straight onto the active workshee…
Win32_Printer: Finding Associated Objects (WQL ASSOCIATORS OF)
Demonstrates Get-CimAssociatedInstance, the modern CIM equivalent of WQL's ASSOCIATORS OF syntax, against a Win32_Print…
Export USB Controllers to CSV via WMI (VBA)
Queries Win32_USBController via WMI and writes every USB Controllers row straight to a CSV file in Documents, using pla…
Get Installed MSI Products Report to File (VBScript)
Queries Win32_Product via WMI and writes Installed MSI Products to a timestamped text file, handy for scheduled logon/l…
Win32_NetworkLoginProfile: Querying Network Login Profiles Remotely (CIM Session)
Runs the same Win32_NetworkLoginProfile WQL query against a remote computer over a CIM session — the modern, WinRM-base…