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:22] 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===== | ||
| + | |||
| + | Man kann die selben Informationen auch via [[CIM]] bekommen. | ||
| + | |||
| + | < | ||
| + | Get-WmiObject -Class Win32_Process | ||
| + | Get-CIMInstance Win32_Process | ||
| + | </ | ||
| + | |||
| + | ====Process==== | ||
| <code powershell> | <code powershell> | ||
| Get-WmiObject -Class Win32_Process | Get-WmiObject -Class Win32_Process | ||
| + | |||
| + | PSComputerName | ||
| + | ProcessName | ||
| + | Handles | ||
| + | VM : 8192 | ||
| + | WS : 8192 | ||
| + | Path : | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | __PROPERTY_COUNT | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | Caption | ||
| + | CommandLine | ||
| + | CreationClassName | ||
| + | CreationDate | ||
| + | CSCreationClassName | ||
| + | CSName | ||
| + | Description | ||
| + | ExecutablePath | ||
| + | ExecutionState | ||
| + | Handle | ||
| + | HandleCount | ||
| + | InstallDate | ||
| + | KernelModeTime | ||
| + | MaximumWorkingSetSize | ||
| + | MinimumWorkingSetSize | ||
| + | Name : System Idle Process | ||
| + | OSCreationClassName | ||
| + | OSName | ||
| + | OtherOperationCount | ||
| + | OtherTransferCount | ||
| + | PageFaults | ||
| + | PageFileUsage | ||
| + | ParentProcessId | ||
| + | PeakPageFileUsage | ||
| + | PeakVirtualSize | ||
| + | PeakWorkingSetSize | ||
| + | Priority | ||
| + | PrivatePageCount | ||
| + | ProcessId | ||
| + | QuotaNonPagedPoolUsage | ||
| + | QuotaPagedPoolUsage | ||
| + | QuotaPeakNonPagedPoolUsage : 1 | ||
| + | QuotaPeakPagedPoolUsage | ||
| + | ReadOperationCount | ||
| + | ReadTransferCount | ||
| + | SessionId | ||
| + | Status | ||
| + | TerminationDate | ||
| + | ThreadCount | ||
| + | UserModeTime | ||
| + | VirtualSize | ||
| + | WindowsVersion | ||
| + | WorkingSetSize | ||
| + | WriteOperationCount | ||
| + | WriteTransferCount | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Options | ||
| + | ClassPath | ||
| + | Properties | ||
| + | SystemProperties | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | Container | ||
| + | </ | ||
| + | |||
| + | ====Service==== | ||
| + | <code powershell> | ||
| Get-WmiObject -Class Win32_Service | Get-WmiObject -Class Win32_Service | ||
| + | |||
| + | PSComputerName | ||
| + | Name : AdobeARMservice | ||
| + | Status | ||
| + | ExitCode | ||
| + | DesktopInteract | ||
| + | ErrorControl | ||
| + | PathName | ||
| + | ServiceType | ||
| + | StartMode | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | __PROPERTY_COUNT | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | AcceptPause | ||
| + | AcceptStop | ||
| + | Caption | ||
| + | CheckPoint | ||
| + | CreationClassName | ||
| + | DelayedAutoStart | ||
| + | Description | ||
| + | DisplayName | ||
| + | InstallDate | ||
| + | ProcessId | ||
| + | ServiceSpecificExitCode : 0 | ||
| + | Started | ||
| + | StartName | ||
| + | State : Running | ||
| + | SystemCreationClassName : Win32_ComputerSystem | ||
| + | SystemName | ||
| + | TagId : 0 | ||
| + | WaitHint | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Path : \\VIE-NB-GBI016\root\cimv2: | ||
| + | Options | ||
| + | ClassPath | ||
| + | Properties | ||
| + | SystemProperties | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | Container | ||
| + | </ | ||
| + | |||
| + | ====Operating System==== | ||
| + | <code powershell> | ||
| Get-WmiObject -Class Win32_OperatingSystem | Get-WmiObject -Class Win32_OperatingSystem | ||
| - | Get-WmiObject -List | ||
| + | PSComputerName | ||
| + | Status | ||
| + | Name : Microsoft Windows 10 Pro|C: | ||
| + | FreePhysicalMemory | ||
| + | FreeSpaceInPagingFiles | ||
| + | FreeVirtualMemory | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | __PROPERTY_COUNT | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | BootDevice | ||
| + | BuildNumber | ||
| + | BuildType | ||
| + | Caption | ||
| + | CodeSet | ||
| + | CountryCode | ||
| + | CreationClassName | ||
| + | CSCreationClassName | ||
| + | CSDVersion | ||
| + | CSName | ||
| + | CurrentTimeZone | ||
| + | DataExecutionPrevention_32BitApplications : True | ||
| + | DataExecutionPrevention_Available | ||
| + | DataExecutionPrevention_Drivers | ||
| + | DataExecutionPrevention_SupportPolicy | ||
| + | Debug : False | ||
| + | Description | ||
| + | Distributed | ||
| + | EncryptionLevel | ||
| + | ForegroundApplicationBoost | ||
| + | InstallDate | ||
| + | LargeSystemCache | ||
| + | LastBootUpTime | ||
| + | LocalDateTime | ||
| + | Locale | ||
| + | Manufacturer | ||
| + | MaxNumberOfProcesses | ||
| + | MaxProcessMemorySize | ||
| + | MUILanguages | ||
| + | NumberOfLicensedUsers | ||
| + | NumberOfProcesses | ||
| + | NumberOfUsers | ||
| + | OperatingSystemSKU | ||
| + | Organization | ||
| + | OSArchitecture | ||
| + | OSLanguage | ||
| + | OSProductSuite | ||
| + | OSType | ||
| + | OtherTypeDescription | ||
| + | PAEEnabled | ||
| + | PlusProductID | ||
| + | PlusVersionNumber | ||
| + | PortableOperatingSystem | ||
| + | Primary | ||
| + | ProductType | ||
| + | RegisteredUser | ||
| + | SerialNumber | ||
| + | ServicePackMajorVersion | ||
| + | ServicePackMinorVersion | ||
| + | SizeStoredInPagingFiles | ||
| + | SuiteMask | ||
| + | SystemDevice | ||
| + | SystemDirectory | ||
| + | SystemDrive | ||
| + | TotalSwapSpaceSize | ||
| + | TotalVirtualMemorySize | ||
| + | TotalVisibleMemorySize | ||
| + | Version | ||
| + | WindowsDirectory | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Path : \\VIE-NB-GBI016\root\cimv2: | ||
| + | Options | ||
| + | ClassPath | ||
| + | Properties | ||
| + | SystemProperties | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | Container | ||
| + | </ | ||
| + | |||
| + | ====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==== | ||
| + | <code powershell> | ||
| + | Get-WmiObject -Class Win32_Bios | ||
| + | |||
| + | PSComputerName | ||
| + | Status | ||
| + | Name : R1EET51W(1.51 ) | ||
| + | Caption | ||
| + | SMBIOSPresent | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | | ||
| + | __PROPERTY_COUNT | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | | ||
| + | BiosCharacteristics | ||
| + | BIOSVersion | ||
| + | BuildNumber | ||
| + | CodeSet | ||
| + | CurrentLanguage | ||
| + | Description | ||
| + | EmbeddedControllerMajorVersion : 1 | ||
| + | EmbeddedControllerMinorVersion : 51 | ||
| + | IdentificationCode | ||
| + | InstallableLanguages | ||
| + | InstallDate | ||
| + | LanguageEdition | ||
| + | ListOfLanguages | ||
| + | Manufacturer | ||
| + | OtherTargetOS | ||
| + | PrimaryBIOS | ||
| + | ReleaseDate | ||
| + | SerialNumber | ||
| + | SMBIOSBIOSVersion | ||
| + | SMBIOSMajorVersion | ||
| + | SMBIOSMinorVersion | ||
| + | SoftwareElementID | ||
| + | SoftwareElementState | ||
| + | SystemBiosMajorVersion | ||
| + | SystemBiosMinorVersion | ||
| + | TargetOperatingSystem | ||
| + | Version | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Path : \\VIE-NB-GBI016\root\cimv2: | ||
| + | | ||
| + | Options | ||
| + | ClassPath | ||
| + | Properties | ||
| + | SystemProperties | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | Container | ||
| + | </ | ||
| + | |||
| + | ====Product==== | ||
| + | <code powershell> | ||
| + | Get-WmiObject -Class Win32_Product // mit MSI installierte Pakete | ||
| + | |||
| + | PSComputerName | ||
| + | Name : Python 3.12.9 Executables (64-bit) | ||
| + | Version | ||
| + | InstallState | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | (64-bit)", | ||
| + | __PROPERTY_COUNT | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | Executables (64-bit)", | ||
| + | AssignmentType | ||
| + | Caption | ||
| + | Description | ||
| + | HelpLink | ||
| + | HelpTelephone | ||
| + | IdentifyingNumber : {8F708501-AF68-42E7-8A6E-D239CA6DA1A8} | ||
| + | InstallDate | ||
| + | InstallDate2 | ||
| + | InstallLocation | ||
| + | InstallSource | ||
| + | Language | ||
| + | LocalPackage | ||
| + | PackageCache | ||
| + | PackageCode | ||
| + | PackageName | ||
| + | ProductID | ||
| + | RegCompany | ||
| + | RegOwner | ||
| + | SKUNumber | ||
| + | Transforms | ||
| + | URLInfoAbout | ||
| + | URLUpdateInfo | ||
| + | Vendor | ||
| + | WordCount | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Path : \\VIE-NB-GBI016\root\cimv2: | ||
| + | Executables (64-bit)", | ||
| + | Options | ||
| + | ClassPath | ||
| + | Properties | ||
| + | SystemProperties | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | Container | ||
| + | </ | ||
| + | |||
| + | ====Printerdriver==== | ||
| + | <code powershell> | ||
| Get-WmiObject -Class Win32_PrinterDriverDll | Get-WmiObject -Class Win32_PrinterDriverDll | ||
| + | |||
| + | PSComputerName | ||
| + | __GENUS | ||
| + | __CLASS | ||
| + | __SUPERCLASS | ||
| + | __DYNASTY | ||
| + | __RELPATH | ||
| + | | ||
| + | | ||
| + | __PROPERTY_COUNT : 2 | ||
| + | __DERIVATION | ||
| + | __SERVER | ||
| + | __NAMESPACE | ||
| + | __PATH | ||
| + | | ||
| + | | ||
| + | Antecedent | ||
| + | Dependent | ||
| + | Scope : System.Management.ManagementScope | ||
| + | Path : \\VIE-NB-GBI016\root\cimv2: | ||
| + | | ||
| + | | ||
| + | Options | ||
| + | ClassPath | ||
| + | Properties | ||
| + | SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, | ||
| + | Qualifiers | ||
| + | Site : | ||
| + | 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 | ||
| </ | </ | ||