Benutzer-Werkzeuge

Webseiten-Werkzeuge


wmi

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
wmi [2025/03/12 12:31]
jango
wmi [2025/03/24 12:53] (aktuell)
jango
Zeile 1: Zeile 1:
-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]]+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]]. WMI ist die Microsoft Implementierung des offenen Standard [[CIM]].
 +
 +<code powershell>
 +Get-WmiObject -List
 +</code>
  
 [[https://www.youtube.com/watch?v=k-_O59BnsHg|The ABC of WMI - Youtube]] [[https://www.youtube.com/watch?v=k-_O59BnsHg|The ABC of WMI - Youtube]]
  
 =====Classes===== =====Classes=====
 +
 +Man kann die selben Informationen auch via [[CIM]] bekommen.
 +
 +<code>
 +Get-WmiObject -Class Win32_Process
 +Get-CIMInstance Win32_Process
 +</code>
  
 ====Process==== ====Process====
 <code powershell> <code powershell>
 Get-WmiObject -Class Win32_Process Get-WmiObject -Class Win32_Process
 +
 PSComputerName             : VIE-NB-GBI016 PSComputerName             : VIE-NB-GBI016
 ProcessName                : System Idle Process ProcessName                : System Idle Process
Zeile 84: Zeile 98:
 <code powershell> <code powershell>
 Get-WmiObject -Class Win32_Service Get-WmiObject -Class Win32_Service
 +
 PSComputerName          : VIE-NB-GBI016 PSComputerName          : VIE-NB-GBI016
 Name                    : AdobeARMservice Name                    : AdobeARMservice
Zeile 135: Zeile 150:
 <code powershell> <code powershell>
 Get-WmiObject -Class Win32_OperatingSystem Get-WmiObject -Class Win32_OperatingSystem
 +
 PSComputerName                            : VIE-NB-GBI016 PSComputerName                            : VIE-NB-GBI016
 Status                                    : OK Status                                    : OK
Zeile 221: Zeile 237:
 </code> </code>
  
 +====Computer System====
 +<code powershell>
 +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                   :
 +</code>
 +
 +====Diskdrive====
 +
 +<code powershell>
 +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                   :
 +</code>
 ====Bios==== ====Bios====
 <code powershell> <code powershell>
 Get-WmiObject -Class Win32_Bios Get-WmiObject -Class Win32_Bios
 +
 PSComputerName                 : VIE-NB-GBI016 PSComputerName                 : VIE-NB-GBI016
 Status                         : OK Status                         : OK
Zeile 283: Zeile 467:
 <code powershell> <code powershell>
 Get-WmiObject -Class Win32_Product // mit MSI installierte Pakete Get-WmiObject -Class Win32_Product // mit MSI installierte Pakete
 +
 PSComputerName    : VIE-NB-GBI016 PSComputerName    : VIE-NB-GBI016
 Name              : Python 3.12.9 Executables (64-bit) Name              : Python 3.12.9 Executables (64-bit)
Zeile 338: Zeile 523:
 <code powershell> <code powershell>
 Get-WmiObject -Class Win32_PrinterDriverDll Get-WmiObject -Class Win32_PrinterDriverDll
 +
 PSComputerName   : VIE-NB-GBI016 PSComputerName   : VIE-NB-GBI016
 __GENUS          : 2 __GENUS          : 2
Zeile 368: Zeile 554:
 </code> </code>
  
-<code powershell+====Userprofil==== 
-Get-WmiObject -List+ 
 +<code> 
 +get-ciminstance win32_userprofile 
 +</code> 
 + 
 +<code> 
 +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
 </code> </code>
wmi.1741779094.txt.gz · Zuletzt geändert: 2025/03/12 12:31 von jango