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: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, | + | 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]]. | ||
| + | |||
| + | <code powershell> | ||
| + | Get-WmiObject -List | ||
| + | </ | ||
| [[https:// | [[https:// | ||
| =====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 84: | Zeile 98: | ||
| <code powershell> | <code powershell> | ||
| Get-WmiObject -Class Win32_Service | Get-WmiObject -Class Win32_Service | ||
| + | |||
| PSComputerName | PSComputerName | ||
| Name : AdobeARMservice | Name : AdobeARMservice | ||
| Zeile 135: | Zeile 150: | ||
| <code powershell> | <code powershell> | ||
| Get-WmiObject -Class Win32_OperatingSystem | Get-WmiObject -Class Win32_OperatingSystem | ||
| + | |||
| PSComputerName | PSComputerName | ||
| Status | Status | ||
| Zeile 221: | Zeile 237: | ||
| </ | </ | ||
| + | ====Computer System==== | ||
| + | <code powershell> | ||
| + | Get-WmiObject -Class Win32_Computersystem | ||
| + | |||
| + | PSComputerName | ||
| + | AdminPasswordStatus | ||
| + | BootupState | ||
| + | ChassisBootupState | ||
| + | KeyboardPasswordStatus | ||
| + | PowerOnPasswordStatus | ||
| + | PowerSupplyState | ||
| + | PowerState | ||
| + | FrontPanelResetStatus | ||
| + | ThermalState | ||
| + | Status | ||
| + | Name : VIE-NB-GBI016 | ||
| + | PowerManagementCapabilities : | ||
| + | PowerManagementSupported | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | __PROPERTY_COUNT | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | AutomaticManagedPagefile | ||
| + | AutomaticResetBootOption | ||
| + | AutomaticResetCapability | ||
| + | BootOptionOnLimit | ||
| + | BootOptionOnWatchDog | ||
| + | BootROMSupported | ||
| + | BootStatus | ||
| + | Caption | ||
| + | ChassisSKUNumber | ||
| + | CreationClassName | ||
| + | CurrentTimeZone | ||
| + | DaylightInEffect | ||
| + | Description | ||
| + | DNSHostName | ||
| + | Domain | ||
| + | DomainRole | ||
| + | EnableDaylightSavingsTime | ||
| + | HypervisorPresent | ||
| + | InfraredSupported | ||
| + | InitialLoadInfo | ||
| + | InstallDate | ||
| + | LastLoadInfo | ||
| + | Manufacturer | ||
| + | Model : 20TD0005GE | ||
| + | NameFormat | ||
| + | NetworkServerModeEnabled | ||
| + | NumberOfLogicalProcessors | ||
| + | NumberOfProcessors | ||
| + | OEMLogoBitmap | ||
| + | OEMStringArray | ||
| + | PartOfDomain | ||
| + | PauseAfterReset | ||
| + | PCSystemType | ||
| + | PCSystemTypeEx | ||
| + | PrimaryOwnerContact | ||
| + | PrimaryOwnerName | ||
| + | ResetCapability | ||
| + | ResetCount | ||
| + | ResetLimit | ||
| + | Roles : {LM_Workstation, | ||
| + | SupportContactDescription | ||
| + | SystemFamily | ||
| + | SystemSKUNumber | ||
| + | SystemStartupDelay | ||
| + | SystemStartupOptions | ||
| + | SystemStartupSetting | ||
| + | SystemType | ||
| + | TotalPhysicalMemory | ||
| + | UserName | ||
| + | WakeUpType | ||
| + | Workgroup | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Path : \\VIE-NB-GBI016\root\cimv2: | ||
| + | Options | ||
| + | ClassPath | ||
| + | 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 | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | Container | ||
| + | </ | ||
| ====Bios==== | ====Bios==== | ||
| <code powershell> | <code powershell> | ||
| Get-WmiObject -Class Win32_Bios | Get-WmiObject -Class Win32_Bios | ||
| + | |||
| PSComputerName | PSComputerName | ||
| Status | Status | ||
| 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 | PSComputerName | ||
| 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 | PSComputerName | ||
| __GENUS | __GENUS | ||
| Zeile 368: | Zeile 554: | ||
| </ | </ | ||
| - | < | + | ====Userprofil==== |
| - | Get-WmiObject -List | + | |
| + | < | ||
| + | get-ciminstance win32_userprofile | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Get-WmiObject | ||
| + | |||
| + | |||
| + | __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 | ||
| </ | </ | ||