Ein WMIObject repräsentiert normalerweise eine Ressource oder eine Eigenschaft auf einem [[Windows]]-System, wie zum Beispiel Hardwarekomponenten, Betriebssysteminformationen, Netzwerkeinstellungen oder Prozessdetails. Diese Objekte können über eine spezielle Abfragesprache namens [[WQL]] (WMI Query Language) abgefragt und verwaltet werden. Siehe auch [[WMIC]], [[CIM]] bzw. [[SNMP]] WMI ist die Microsoft Implementierung des offenen Standard [[CIM]]. Get-WmiObject -List [[https://www.youtube.com/watch?v=k-_O59BnsHg|The ABC of WMI - Youtube]] =====Classes===== Man kann die selben Informationen auch via [[CIM]] bekommen. Get-WmiObject -Class Win32_Process Get-CIMInstance Win32_Process ====Process==== Get-WmiObject -Class Win32_Process PSComputerName : VIE-NB-GBI016 ProcessName : System Idle Process Handles : 0 VM : 8192 WS : 8192 Path : __GENUS : 2 __CLASS : Win32_Process __SUPERCLASS : CIM_Process __DYNASTY : CIM_ManagedSystemElement __RELPATH : Win32_Process.Handle="0" __PROPERTY_COUNT : 45 __DERIVATION : {CIM_Process, CIM_LogicalElement, CIM_ManagedSystemElement} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_Process.Handle="0" Caption : System Idle Process CommandLine : CreationClassName : Win32_Process CreationDate : 20250310125151.770246+060 CSCreationClassName : Win32_ComputerSystem CSName : VIE-NB-GBI016 Description : System Idle Process ExecutablePath : ExecutionState : Handle : 0 HandleCount : 0 InstallDate : KernelModeTime : 12324596875000 MaximumWorkingSetSize : MinimumWorkingSetSize : Name : System Idle Process OSCreationClassName : Win32_OperatingSystem OSName : Microsoft Windows 10 Pro|C:\WINDOWS|\Device\Harddisk0\Partition3 OtherOperationCount : 0 OtherTransferCount : 0 PageFaults : 9 PageFileUsage : 60 ParentProcessId : 0 PeakPageFileUsage : 60 PeakVirtualSize : 8192 PeakWorkingSetSize : 12 Priority : 0 PrivatePageCount : 61440 ProcessId : 0 QuotaNonPagedPoolUsage : 1 QuotaPagedPoolUsage : 0 QuotaPeakNonPagedPoolUsage : 1 QuotaPeakPagedPoolUsage : 0 ReadOperationCount : 0 ReadTransferCount : 0 SessionId : 0 Status : TerminationDate : ThreadCount : 8 UserModeTime : 0 VirtualSize : 8192 WindowsVersion : 10.0.19045 WorkingSetSize : 8192 WriteOperationCount : 0 WriteTransferCount : 0 Scope : System.Management.ManagementScope Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_Process Properties : {Caption, CommandLine, CreationClassName, CreationDate...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, UUID} Site : Container : ====Service==== Get-WmiObject -Class Win32_Service PSComputerName : VIE-NB-GBI016 Name : AdobeARMservice Status : OK ExitCode : 0 DesktopInteract : False ErrorControl : Ignore PathName : "C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\armsvc.exe" ServiceType : Own Process StartMode : Auto __GENUS : 2 __CLASS : Win32_Service __SUPERCLASS : Win32_BaseService __DYNASTY : CIM_ManagedSystemElement __RELPATH : Win32_Service.Name="AdobeARMservice" __PROPERTY_COUNT : 26 __DERIVATION : {Win32_BaseService, CIM_Service, CIM_LogicalElement, CIM_ManagedSystemElement} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_Service.Name="AdobeARMservice" AcceptPause : False AcceptStop : True Caption : Adobe Acrobat Update Service CheckPoint : 0 CreationClassName : Win32_Service DelayedAutoStart : False Description : Adobe Acrobat Updater keeps your Adobe software up to date. DisplayName : Adobe Acrobat Update Service InstallDate : ProcessId : 5788 ServiceSpecificExitCode : 0 Started : True StartName : LocalSystem State : Running SystemCreationClassName : Win32_ComputerSystem SystemName : VIE-NB-GBI016 TagId : 0 WaitHint : 0 Scope : System.Management.ManagementScope Path : \\VIE-NB-GBI016\root\cimv2:Win32_Service.Name="AdobeARMservice" Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_Service Properties : {AcceptPause, AcceptStop, Caption, CheckPoint...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, UUID} Site : Container : ====Operating System==== Get-WmiObject -Class Win32_OperatingSystem PSComputerName : VIE-NB-GBI016 Status : OK Name : Microsoft Windows 10 Pro|C:\WINDOWS|\Device\Harddisk0\Partition3 FreePhysicalMemory : 2671540 FreeSpaceInPagingFiles : 10354420 FreeVirtualMemory : 4380380 __GENUS : 2 __CLASS : Win32_OperatingSystem __SUPERCLASS : CIM_OperatingSystem __DYNASTY : CIM_ManagedSystemElement __RELPATH : Win32_OperatingSystem=@ __PROPERTY_COUNT : 64 __DERIVATION : {CIM_OperatingSystem, CIM_LogicalElement, CIM_ManagedSystemElement} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_OperatingSystem=@ BootDevice : \Device\HarddiskVolume1 BuildNumber : 19045 BuildType : Multiprocessor Free Caption : Microsoft Windows 10 Pro CodeSet : 1252 CountryCode : 49 CreationClassName : Win32_OperatingSystem CSCreationClassName : Win32_ComputerSystem CSDVersion : CSName : VIE-NB-GBI016 CurrentTimeZone : 60 DataExecutionPrevention_32BitApplications : True DataExecutionPrevention_Available : True DataExecutionPrevention_Drivers : True DataExecutionPrevention_SupportPolicy : 2 Debug : False Description : Distributed : False EncryptionLevel : 256 ForegroundApplicationBoost : 2 InstallDate : 20210201153159.000000+060 LargeSystemCache : LastBootUpTime : 20250310125147.500000+060 LocalDateTime : 20250312122802.210000+060 Locale : 0407 Manufacturer : Microsoft Corporation MaxNumberOfProcesses : 4294967295 MaxProcessMemorySize : 137438953344 MUILanguages : {de-DE} NumberOfLicensedUsers : 0 NumberOfProcesses : 364 NumberOfUsers : 26 OperatingSystemSKU : 48 Organization : akm austromechana OSArchitecture : 64-Bit OSLanguage : 1031 OSProductSuite : 256 OSType : 18 OtherTypeDescription : PAEEnabled : PlusProductID : PlusVersionNumber : PortableOperatingSystem : False Primary : True ProductType : 1 RegisteredUser : akm austromechana SerialNumber : 00331-10000-00001-AA560 ServicePackMajorVersion : 0 ServicePackMinorVersion : 0 SizeStoredInPagingFiles : 13688488 SuiteMask : 272 SystemDevice : \Device\HarddiskVolume3 SystemDirectory : C:\WINDOWS\system32 SystemDrive : C: TotalSwapSpaceSize : TotalVirtualMemorySize : 30156572 TotalVisibleMemorySize : 16468084 Version : 10.0.19045 WindowsDirectory : C:\WINDOWS Scope : System.Management.ManagementScope Path : \\VIE-NB-GBI016\root\cimv2:Win32_OperatingSystem=@ Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_OperatingSystem Properties : {BootDevice, BuildNumber, BuildType, Caption...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, Singleton...} Site : Container : ====Computer System==== Get-WmiObject -Class Win32_Computersystem PSComputerName : VIE-NB-GBI016 AdminPasswordStatus : 0 BootupState : Normal boot ChassisBootupState : 2 KeyboardPasswordStatus : 2 PowerOnPasswordStatus : 0 PowerSupplyState : 2 PowerState : 0 FrontPanelResetStatus : 2 ThermalState : 2 Status : OK Name : VIE-NB-GBI016 PowerManagementCapabilities : PowerManagementSupported : __GENUS : 2 __CLASS : Win32_ComputerSystem __SUPERCLASS : CIM_UnitaryComputerSystem __DYNASTY : CIM_ManagedSystemElement __RELPATH : Win32_ComputerSystem.Name="VIE-NB-GBI016" __PROPERTY_COUNT : 64 __DERIVATION : {CIM_UnitaryComputerSystem, CIM_ComputerSystem, CIM_System, CIM_LogicalElement...} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_ComputerSystem.Name="VIE-NB-GBI016" AutomaticManagedPagefile : True AutomaticResetBootOption : True AutomaticResetCapability : True BootOptionOnLimit : BootOptionOnWatchDog : BootROMSupported : True BootStatus : Caption : VIE-NB-GBI016 ChassisSKUNumber : CreationClassName : Win32_ComputerSystem CurrentTimeZone : 60 DaylightInEffect : False Description : AT/AT COMPATIBLE DNSHostName : vie-nb-gbi016 Domain : d2000.local DomainRole : 1 EnableDaylightSavingsTime : True HypervisorPresent : True InfraredSupported : False InitialLoadInfo : InstallDate : LastLoadInfo : Manufacturer : LENOVO Model : 20TD0005GE NameFormat : NetworkServerModeEnabled : True NumberOfLogicalProcessors : 8 NumberOfProcessors : 1 OEMLogoBitmap : OEMStringArray : PartOfDomain : True PauseAfterReset : -1 PCSystemType : 2 PCSystemTypeEx : 2 PrimaryOwnerContact : PrimaryOwnerName : akm austromechana ResetCapability : 1 ResetCount : -1 ResetLimit : -1 Roles : {LM_Workstation, LM_Server, NT} SupportContactDescription : SystemFamily : ThinkPad E15 Gen 2 SystemSKUNumber : LENOVO_MT_20TD_BU_Think_FM_ThinkPad E15 Gen 2 SystemStartupDelay : SystemStartupOptions : SystemStartupSetting : SystemType : x64-based PC TotalPhysicalMemory : 16863318016 UserName : D2000\manuel.zarat WakeUpType : 6 Workgroup : Scope : System.Management.ManagementScope Path : \\VIE-NB-GBI016\root\cimv2:Win32_ComputerSystem.Name="VIE-NB-GBI016" Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_ComputerSystem Properties : {AdminPasswordStatus, AutomaticManagedPagefile, AutomaticResetBootOption, AutomaticResetCapability...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, UUID} Site : Container : ====Diskdrive==== Get-WMIObject Win32_Diskdrive PSComputerName : VIE-T-SRV-AUDIT ConfigManagerErrorCode : 0 LastErrorCode : NeedsCleaning : Status : OK DeviceID : \\.\PHYSICALDRIVE0 StatusInfo : Partitions : 3 BytesPerSector : 512 ConfigManagerUserConfig : False DefaultBlockSize : Index : 0 InstallDate : InterfaceType : SCSI MaxBlockSize : MaxMediaSize : MinBlockSize : NumberOfMediaSupported : SectorsPerTrack : 63 Size : 483177623040 TotalCylinders : 58743 TotalHeads : 255 TotalSectors : 943706295 TotalTracks : 14979465 TracksPerCylinder : 255 __GENUS : 2 __CLASS : Win32_DiskDrive __SUPERCLASS : CIM_DiskDrive __DYNASTY : CIM_ManagedSystemElement __RELPATH : Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0" __PROPERTY_COUNT : 51 __DERIVATION : {CIM_DiskDrive, CIM_MediaAccessDevice, CIM_LogicalDevice, CIM_LogicalElement...} __SERVER : VIE-T-SRV-AUDIT __NAMESPACE : root\cimv2 __PATH : \\VIE-T-SRV-AUDIT\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0" Availability : Capabilities : {3, 4} CapabilityDescriptions : {Random Access, Supports Writing} Caption : VMware Virtual disk SCSI Disk Device CompressionMethod : CreationClassName : Win32_DiskDrive Description : Laufwerk ErrorCleared : ErrorDescription : ErrorMethodology : FirmwareRevision : 2.0 Manufacturer : (Standardlaufwerke) MediaLoaded : True MediaType : Fixed hard disk media Model : VMware Virtual disk SCSI Disk Device Name : \\.\PHYSICALDRIVE0 PNPDeviceID : SCSI\DISK&VEN_VMWARE&PROD_VIRTUAL_DISK\5&1EC51BF7&0&000000 PowerManagementCapabilities : PowerManagementSupported : SCSIBus : 0 SCSILogicalUnit : 0 SCSIPort : 0 SCSITargetId : 0 SerialNumber : Signature : 136702617 SystemCreationClassName : Win32_ComputerSystem SystemName : VIE-T-SRV-AUDIT Scope : System.Management.ManagementScope Path : \\VIE-T-SRV-AUDIT\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0" Options : System.Management.ObjectGetOptions ClassPath : \\VIE-T-SRV-AUDIT\root\cimv2:Win32_DiskDrive Properties : {Availability, BytesPerSector, Capabilities, CapabilityDescriptions...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, UUID} Site : Container : ====Bios==== Get-WmiObject -Class Win32_Bios PSComputerName : VIE-NB-GBI016 Status : OK Name : R1EET51W(1.51 ) Caption : R1EET51W(1.51 ) SMBIOSPresent : True __GENUS : 2 __CLASS : Win32_BIOS __SUPERCLASS : CIM_BIOSElement __DYNASTY : CIM_ManagedSystemElement __RELPATH : Win32_BIOS.Name="R1EET51W(1.51 )",SoftwareElementID="R1EET51W(1.51 )",SoftwareElementState=3,TargetOperatingSystem=0,Version="LENOVO - 1330" __PROPERTY_COUNT : 31 __DERIVATION : {CIM_BIOSElement, CIM_SoftwareElement, CIM_LogicalElement, CIM_ManagedSystemElement} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_BIOS.Name="R1EET51W(1.51 )",SoftwareElementID="R1EET51W(1.51 )",SoftwareElementState=3,TargetOperatingSystem=0,Version="LENOVO - 1330" BiosCharacteristics : {7, 9, 11, 12...} BIOSVersion : {LENOVO - 1330, R1EET51W(1.51 ), Lenovo - 1330} BuildNumber : CodeSet : CurrentLanguage : en-US Description : R1EET51W(1.51 ) EmbeddedControllerMajorVersion : 1 EmbeddedControllerMinorVersion : 51 IdentificationCode : InstallableLanguages : 1 InstallDate : LanguageEdition : ListOfLanguages : {en-US} Manufacturer : LENOVO OtherTargetOS : PrimaryBIOS : True ReleaseDate : 20220601000000.000000+000 SerialNumber : PF2J2JX0 SMBIOSBIOSVersion : R1EET51W(1.51 ) SMBIOSMajorVersion : 3 SMBIOSMinorVersion : 2 SoftwareElementID : R1EET51W(1.51 ) SoftwareElementState : 3 SystemBiosMajorVersion : 1 SystemBiosMinorVersion : 51 TargetOperatingSystem : 0 Version : LENOVO - 1330 Scope : System.Management.ManagementScope Path : \\VIE-NB-GBI016\root\cimv2:Win32_BIOS.Name="R1EET51W(1.51 )",SoftwareElementID="R1EET51W(1.51 )",SoftwareElementState=3,TargetOperatingSystem=0,Version="LENOVO - 1330" Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_BIOS Properties : {BiosCharacteristics, BIOSVersion, BuildNumber, Caption...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, UUID} Site : Container : ====Product==== Get-WmiObject -Class Win32_Product // mit MSI installierte Pakete PSComputerName : VIE-NB-GBI016 Name : Python 3.12.9 Executables (64-bit) Version : 3.12.9150.0 InstallState : 5 __GENUS : 2 __CLASS : Win32_Product __SUPERCLASS : CIM_Product __DYNASTY : CIM_Product __RELPATH : Win32_Product.IdentifyingNumber="{8F708501-AF68-42E7-8A6E-D239CA6DA1A8}",Name="Python 3.12.9 Executables (64-bit)",Version="3.12.9150.0" __PROPERTY_COUNT : 27 __DERIVATION : {CIM_Product} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_Product.IdentifyingNumber="{8F708501-AF68-42E7-8A6E-D239CA6DA1A8}",Name="Python 3.12.9 Executables (64-bit)",Version="3.12.9150.0" AssignmentType : 0 Caption : Python 3.12.9 Executables (64-bit) Description : Python 3.12.9 Executables (64-bit) HelpLink : HelpTelephone : IdentifyingNumber : {8F708501-AF68-42E7-8A6E-D239CA6DA1A8} InstallDate : 20250309 InstallDate2 : InstallLocation : InstallSource : C:\Users\admin_zarat\AppData\Local\Package Cache\{8F708501-AF68-42E7-8A6E-D239CA6DA1A8}v3.12.9150.0\ Language : 1033 LocalPackage : C:\WINDOWS\Installer\30dc9ec0.msi PackageCache : C:\WINDOWS\Installer\30dc9ec0.msi PackageCode : {682163C2-28D3-44AB-89CD-BD21EA3B274A} PackageName : exe.msi ProductID : RegCompany : RegOwner : SKUNumber : Transforms : URLInfoAbout : URLUpdateInfo : Vendor : Python Software Foundation WordCount : 0 Scope : System.Management.ManagementScope Path : \\VIE-NB-GBI016\root\cimv2:Win32_Product.IdentifyingNumber="{8F708501-AF68-42E7-8A6E-D239CA6DA1A8}",Name="Python 3.12.9 Executables (64-bit)",Version="3.12.9150.0" Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_Product Properties : {AssignmentType, Caption, Description, HelpLink...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, Locale, provider, UUID} Site : Container : ====Printerdriver==== Get-WmiObject -Class Win32_PrinterDriverDll PSComputerName : VIE-NB-GBI016 __GENUS : 2 __CLASS : Win32_PrinterDriverDll __SUPERCLASS : CIM_Dependency __DYNASTY : CIM_Dependency __RELPATH : Win32_PrinterDriverDll.Antecedent="\\\\VIE-NB-GBI016\\root\\cimv2:CIM_Datafile.Name=\"C:\\\\WINDOWS\\\\system32\\\\spool\\\\D RIVERS\\\\x64\\\\3\\\\pscript5-64.dll\"",Dependent="\\\\VIE-NB-GBI016\\root\\CIMV2:Win32_Printer.DeviceID=\"STARFACE App Fax\"" __PROPERTY_COUNT : 2 __DERIVATION : {CIM_Dependency} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_PrinterDriverDll.Antecedent="\\\\VIE-NB-GBI016\\root\\cimv2:CIM_Datafile.Name=\"C:\\\\WINDOW S\\\\system32\\\\spool\\\\DRIVERS\\\\x64\\\\3\\\\pscript5-64.dll\"",Dependent="\\\\VIE-NB-GBI016\\root\\CIMV2:Win32_Printer.D eviceID=\"STARFACE App Fax\"" Antecedent : \\VIE-NB-GBI016\root\cimv2:CIM_Datafile.Name="C:\\WINDOWS\\system32\\spool\\DRIVERS\\x64\\3\\pscript5-64.dll" Dependent : \\VIE-NB-GBI016\root\CIMV2:Win32_Printer.DeviceID="STARFACE App Fax" Scope : System.Management.ManagementScope Path : \\VIE-NB-GBI016\root\cimv2:Win32_PrinterDriverDll.Antecedent="\\\\VIE-NB-GBI016\\root\\cimv2:CIM_Datafile.Name=\"C:\\\\WINDOW S\\\\system32\\\\spool\\\\DRIVERS\\\\x64\\\\3\\\\pscript5-64.dll\"",Dependent="\\\\VIE-NB-GBI016\\root\\CIMV2:Win32_Printer.D eviceID=\"STARFACE App Fax\"" Options : System.Management.ObjectGetOptions ClassPath : \\VIE-NB-GBI016\root\cimv2:Win32_PrinterDriverDll Properties : {Antecedent, Dependent} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {Association, dynamic} Site : Container : ====Userprofil==== get-ciminstance win32_userprofile Get-WmiObject win32_userprofile __GENUS : 2 __CLASS : Win32_UserProfile __SUPERCLASS : __DYNASTY : Win32_UserProfile __RELPATH : Win32_UserProfile.SID="S-1-5-80-3238277391-1891473654-1195688043-4149050645-2494734967" __PROPERTY_COUNT : 29 __DERIVATION : {} __SERVER : VIE-NB-GBI016 __NAMESPACE : root\cimv2 __PATH : \\VIE-NB-GBI016\root\cimv2:Win32_UserProfile.SID="S-1-5-80-3238277391-1891473654-1195688043-4149050645-2494734967" AppDataRoaming : System.Management.ManagementBaseObject Contacts : System.Management.ManagementBaseObject Desktop : System.Management.ManagementBaseObject Documents : System.Management.ManagementBaseObject Downloads : System.Management.ManagementBaseObject Favorites : System.Management.ManagementBaseObject HealthStatus : 3 LastAttemptedProfileDownloadTime : LastAttemptedProfileUploadTime : LastBackgroundRegistryUploadTime : LastDownloadTime : LastUploadTime : LastUseTime : 20250322041747.429000+000 Links : System.Management.ManagementBaseObject Loaded : False LocalPath : C:\WINDOWS\ServiceProfiles\OVRLibraryService Music : System.Management.ManagementBaseObject Pictures : System.Management.ManagementBaseObject RefCount : RoamingConfigured : False RoamingPath : RoamingPreference : SavedGames : System.Management.ManagementBaseObject Searches : System.Management.ManagementBaseObject SID : S-1-5-80-3238277391-1891473654-1195688043-4149050645-2494734967 Special : False StartMenu : System.Management.ManagementBaseObject Status : 0 Videos : System.Management.ManagementBaseObject PSComputerName : VIE-NB-GBI016