Dies ist eine alte Version des Dokuments!
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 WMIC. Siehe auch SNMP
WMI ist die Microsoft Implementierung des offenen Standard CIM.
Get-WmiObject -List
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 :
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 :
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 :
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 :
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 :
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 :