Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
wmi [2025/03/12 12:33] jango [Operating System] |
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, | + | Ein WMIObject repräsentiert normalerweise eine Ressource oder eine Eigenschaft auf einem [[Windows]]-System, |
+ | |||
+ | Siehe auch [[WMIC]], [[CIM]] bzw. [[SNMP]] | ||
WMI ist die Microsoft Implementierung des offenen Standard [[CIM]]. | WMI ist die Microsoft Implementierung des offenen Standard [[CIM]]. | ||
Zeile 10: | Zeile 12: | ||
=====Classes===== | =====Classes===== | ||
+ | |||
+ | Man kann die selben Informationen auch via [[CIM]] bekommen. | ||
+ | |||
+ | < | ||
+ | Get-WmiObject -Class Win32_Process | ||
+ | Get-CIMInstance Win32_Process | ||
+ | </ | ||
====Process==== | ====Process==== | ||
<code powershell> | <code powershell> | ||
Get-WmiObject -Class Win32_Process | Get-WmiObject -Class Win32_Process | ||
+ | |||
PSComputerName | PSComputerName | ||
ProcessName | ProcessName | ||
Zeile 88: | Zeile 98: | ||
<code powershell> | <code powershell> | ||
Get-WmiObject -Class Win32_Service | Get-WmiObject -Class Win32_Service | ||
+ | |||
PSComputerName | PSComputerName | ||
Name : AdobeARMservice | Name : AdobeARMservice | ||
Zeile 139: | Zeile 150: | ||
<code powershell> | <code powershell> | ||
Get-WmiObject -Class Win32_OperatingSystem | Get-WmiObject -Class Win32_OperatingSystem | ||
+ | |||
PSComputerName | PSComputerName | ||
Status | Status | ||
Zeile 227: | Zeile 239: | ||
====Computer System==== | ====Computer System==== | ||
<code powershell> | <code powershell> | ||
- | Get-WmiObject -Class Win32_Computersystem | + | Get-WmiObject -Class Win32_Computersystem |
PSComputerName | PSComputerName | ||
Zeile 310: | Zeile 321: | ||
ClassPath | ClassPath | ||
Properties | Properties | ||
+ | SystemProperties | ||
+ | Qualifiers | ||
+ | Site : | ||
+ | Container | ||
+ | </ | ||
+ | |||
+ | ====Diskdrive==== | ||
+ | |||
+ | <code powershell> | ||
+ | Get-WMIObject Win32_Diskdrive | ||
+ | |||
+ | PSComputerName | ||
+ | ConfigManagerErrorCode | ||
+ | LastErrorCode | ||
+ | NeedsCleaning | ||
+ | Status | ||
+ | DeviceID | ||
+ | StatusInfo | ||
+ | Partitions | ||
+ | BytesPerSector | ||
+ | ConfigManagerUserConfig | ||
+ | DefaultBlockSize | ||
+ | Index : 0 | ||
+ | InstallDate | ||
+ | InterfaceType | ||
+ | MaxBlockSize | ||
+ | MaxMediaSize | ||
+ | MinBlockSize | ||
+ | NumberOfMediaSupported | ||
+ | SectorsPerTrack | ||
+ | Size : 483177623040 | ||
+ | TotalCylinders | ||
+ | TotalHeads | ||
+ | TotalSectors | ||
+ | TotalTracks | ||
+ | TracksPerCylinder | ||
+ | __GENUS | ||
+ | __CLASS | ||
+ | __SUPERCLASS | ||
+ | __DYNASTY | ||
+ | __RELPATH | ||
+ | __PROPERTY_COUNT | ||
+ | __DERIVATION | ||
+ | __SERVER | ||
+ | __NAMESPACE | ||
+ | __PATH | ||
+ | Availability | ||
+ | Capabilities | ||
+ | CapabilityDescriptions | ||
+ | Caption | ||
+ | CompressionMethod | ||
+ | CreationClassName | ||
+ | Description | ||
+ | ErrorCleared | ||
+ | ErrorDescription | ||
+ | ErrorMethodology | ||
+ | FirmwareRevision | ||
+ | Manufacturer | ||
+ | MediaLoaded | ||
+ | MediaType | ||
+ | Model : VMware Virtual disk SCSI Disk Device | ||
+ | Name : \\.\PHYSICALDRIVE0 | ||
+ | PNPDeviceID | ||
+ | PowerManagementCapabilities : | ||
+ | PowerManagementSupported | ||
+ | SCSIBus | ||
+ | SCSILogicalUnit | ||
+ | SCSIPort | ||
+ | SCSITargetId | ||
+ | SerialNumber | ||
+ | Signature | ||
+ | SystemCreationClassName | ||
+ | SystemName | ||
+ | Scope : System.Management.ManagementScope | ||
+ | Path : \\VIE-T-SRV-AUDIT\root\cimv2: | ||
+ | Options | ||
+ | ClassPath | ||
+ | Properties | ||
SystemProperties | SystemProperties | ||
Qualifiers | Qualifiers | ||
Zeile 318: | Zeile 407: | ||
<code powershell> | <code powershell> | ||
Get-WmiObject -Class Win32_Bios | Get-WmiObject -Class Win32_Bios | ||
+ | |||
PSComputerName | PSComputerName | ||
Status | Status | ||
Zeile 377: | 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 | PSComputerName | ||
Name : Python 3.12.9 Executables (64-bit) | Name : Python 3.12.9 Executables (64-bit) | ||
Zeile 432: | Zeile 523: | ||
<code powershell> | <code powershell> | ||
Get-WmiObject -Class Win32_PrinterDriverDll | Get-WmiObject -Class Win32_PrinterDriverDll | ||
+ | |||
PSComputerName | PSComputerName | ||
__GENUS | __GENUS | ||
Zeile 460: | Zeile 552: | ||
Site : | Site : | ||
Container | Container | ||
+ | </ | ||
+ | |||
+ | ====Userprofil==== | ||
+ | |||
+ | < | ||
+ | get-ciminstance win32_userprofile | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Get-WmiObject win32_userprofile | ||
+ | |||
+ | |||
+ | __GENUS | ||
+ | __CLASS | ||
+ | __SUPERCLASS | ||
+ | __DYNASTY | ||
+ | __RELPATH | ||
+ | __PROPERTY_COUNT | ||
+ | __DERIVATION | ||
+ | __SERVER | ||
+ | __NAMESPACE | ||
+ | __PATH | ||
+ | AppDataRoaming | ||
+ | Contacts | ||
+ | Desktop | ||
+ | Documents | ||
+ | Downloads | ||
+ | Favorites | ||
+ | HealthStatus | ||
+ | LastAttemptedProfileDownloadTime : | ||
+ | LastAttemptedProfileUploadTime | ||
+ | LastBackgroundRegistryUploadTime : | ||
+ | LastDownloadTime | ||
+ | LastUploadTime | ||
+ | LastUseTime | ||
+ | Links : System.Management.ManagementBaseObject | ||
+ | Loaded | ||
+ | LocalPath | ||
+ | Music : System.Management.ManagementBaseObject | ||
+ | Pictures | ||
+ | RefCount | ||
+ | RoamingConfigured | ||
+ | RoamingPath | ||
+ | RoamingPreference | ||
+ | SavedGames | ||
+ | Searches | ||
+ | SID : S-1-5-80-3238277391-1891473654-1195688043-4149050645-2494734967 | ||
+ | Special | ||
+ | StartMenu | ||
+ | Status | ||
+ | Videos | ||
+ | PSComputerName | ||
</ | </ |