====== WMI====== [[windows:windows|{{ :windows:icon.jpg?120|}}]] ===== context===== dit document geeft enkele nuttige WMI queries ===== memory===== wmic path win32_physicalmemory wmic path Win32_PhysicalMemoryArray ===== pyscical disk ===== wmic path win32_DiskDrive get SerialNumber, Manufacturer, Name ===== operating system ===== wmic os get Caption, Version, BuildNumber, OSArchitecture ===== anti-virus ===== wmic /namespace:\\root\SecurityCenter path AntiVirusProduct > lansweeperwmi1.txt wmic /namespace:\\root\SecurityCenter2 path AntiVirusProduct > lansweeperwmi2.txt ===== drive mappings ===== wmic netuse\\ Lansweeper only scans __persistent__drive mappings ===== Windows product key ===== wmic path softwarelicensingservice get OA3xOriginalProductKey ===== uptime ===== wmic /namespace:\\root\cimv2 path Win32_PerfFormattedData_PerfOS_System get systemuptime ===== printers ===== Get-WmiObject -class Win32_Printer {{tag>windows WMI}}