Hyper-V WMI 提供程序中的新增功能
Hyper-V WMI 提供程序的版本 2 是Windows 8和Windows Server 2012的新增功能。
Windows 10 版本 1709
新类:
新属性:
- Msvm_CollectionReferencePointExportJob: ExportedGuestStateFilePaths
- Msvm_EthernetSwitchHardwareOffloadData: DefaultQueueVrssIndependentHostSpreading、 DefaultQueueVrssExcludePrimaryProcessor、 DefaultQueueVrssQueueSchedulingMode 和 DefaultQueueVrssMinQueuePairs
- Msvm_EthernetSwitchHardwareOffloadSettingData: DefaultQueueVrssIndependentHostSpreading、 DefaultQueueVrssExcludePrimaryProcessor、 DefaultQueueVrssQueueSchedulingMode、 DefaultQueueVrssMinQueuePairs、
- Msvm_EthernetSwitchPortOffloadData: VrssVmbusChannelAffinityPolicy、 VrssIndependentHostSpreading、 VrssExcludePrimaryProcessor、 VrssQueueSchedulingModes 和 VrssMinQueuePairs
- Msvm_VirtualHardDiskSettingData: DataAlignment、 PmemAddressAbstractionType 和 IsPmemCompatible
- Msvm_VirtualSystemExportSettingData: DisableDifferentialOfIgnoredStorage 和 ExcludedVirtualHardDisks
- Msvm_VirtualSystemManagementServiceSettingData: HypervisorRootSchedulerEnabled
- Msvm_VirtualSystemMigrationSettingData: CPUCappingMagnitude 和 CancelIfBlackoutThresholdExceeded
- Msvm_VirtualSystemReferencePointExportJob: ExportedGuestStateFilePath
- Msvm_VirtualSystemSettingData: 体系结构、 AutomaticSnapshotsEnabled、 IsAutomaticSnapshot、 GuestStateFile 和 GuestStateDataRoot
Windows 10 版本 1703
新类:
- Msvm_AssignableDeviceDismountSettingData
- Msvm_AssignableDeviceService
- Msvm_CollectionReferencePointExportJob
- Msvm_EthernetSwitchHardwareOffloadSettingData
- Msvm_EthernetSwitchPortMigrationQosSettingData
- Msvm_EthernetSwitchPortRdmaSettingData
- Msvm_EthernetSwitchPortTeamMappingSettingData
- Msvm_GpuPartition
- Msvm_GpuPartitionSettingData
- Msvm_NetworkConnectionDiagnosticInformation
- Msvm_NetworkConnectionDiagnosticSettingData
- Msvm_PartitionableGpu
- Msvm_PciExpress
- Msvm_PciExpressSettingData
- Msvm_SecurityElement
- Msvm_SecurityService
- Msvm_SecuritySettingData
- Msvm_StorageSettingData
- Msvm_SummaryInformationBase
- Msvm_SystemComponentSettingData
- Msvm_VirtualSystemReferencePointExportJob
- Msvm_VirtualSystemReferencePointSettingData
已删除的类:
新方法:
- Msvm_CollectionSnapshotService 类: ApplySnapshot
- Msvm_VirtualSystemManagementService 类: AddSystemComponentSetting、 DiagnoseNetworkConnection、 ModifySystemComponentSettings 和 RemoveSystemComponentSettings
- Msvm_VirtualSystemReferencePointService 类: ImportReferencePointMetadata
新属性:
- Msvm_EthernetSwitchHardwareOffloadData: DefaultQueueVmmqQueuePairs、 DefaultQueueVmmqEnabled 和 DefaultQueueVrssEnabled
- Msvm_EthernetSwitchPortOffloadData: VmmqQueuePairs、 VmmqEnabled 和 VrssEnabled
- Msvm_EthernetSwitchPortOffloadSettingData: VmmqQueuePairs、 VmmqEnabled 和 VrssEnabled
- Msvm_GuestClusterInformation: LastResourceMoveTime
- Msvm_KvpExchangeComponentSettingData: DisableHostKVPItems
- Msvm_MemorySettingData: SgxSize 和 SgxEnabled
- Msvm_Physical3dGraphicsProcessor: CompatibleForVirtualization 和 DriverModelVersion
- Msvm_ProcessorSettingData: HwThreadsPerCoreCpuGroupId、 HideHypervisorPresent 和 ExposeVirtualizationExtensions
- Msvm_SettingsDefineCapabilities: SupportStatement
- Msvm_StorageAllocationSettingData: WriteHardeningMethod
- Msvm_SummaryInformation: 受防护
- Msvm_SyntheticEthernetPortSettingData: AllowPacketDirect
- Msvm_VirtualSystemCollection: LastApplyConsistencyLevel、 LastApplyVirtualMachineIds、 LastApplyTime、 FailedOverReplicationType、 ReplicationMode 和 ReplicationState
- Msvm_VirtualSystemExportSettingData: ExportForLiveMigration
- Msvm_VirtualSystemMigrationSettingData: 避免删除VHD 和 AllowOverwriteExistingFile
- Msvm_VirtualSystemSettingData: HighMmioGapSize
- Msvm_VirtualSystemSnapshotSettingData: GuestBackupType
已删除的属性:
- Msvm_VirtualSystemSettingData: ParentPackage
Windows 10
新类:
- CIM_CollectedMSEs
- CIM_Collection
- CIM_CollectionOfMSEs
- CIM_ElementView
- CIM_MemberOfCollection
- CIM_TPM
- CIM_View
- Msvm_CollectedCollections
- Msvm_CollectedReferencePoints
- Msvm_CollectedSnapshots
- Msvm_CollectedVirtualSystems
- Msvm_CollectionManagementService
- Msvm_CollectionReferencePointExportSettingData
- Msvm_CollectionReferencePointService
- Msvm_CollectionReferencePointSettingData
- Msvm_CollectionSettingData
- Msvm_CollectionSnapshotExportSettingData
- Msvm_CollectionSnapshotService
- Msvm_ComputerSystemSummaryInformation
- Msvm_EthernetSwitchPortVfpSettingData
- Msvm_GuestClusterInformation
- Msvm_GuestCommunicationService
- Msvm_GuestCommunicationServiceSettingData
- Msvm_GuestServiceInterfaceSettingDataComponent
- Msvm_ManagementCollection
- Msvm_MoveUnmanagedVhd
- Msvm_ReferencePointCollection
- Msvm_ReferencePointOfVirtualSystem
- Msvm_ReferencePointOfVirtualSystemCollection
- Msvm_ResourceDependentOnResource
- Msvm_SerialPortSettingData
- Msvm_ServiceOfVssComponent
- Msvm_SnapshotCollection
- Msvm_SnapshotOfVirtualSystemCollection
- Msvm_StandaloneV2ElementConformsToProfile
- Msvm_SyntheticDisplayControllerSettingData
- Msvm_SyntheticKeyboard
- Msvm_TPM
- Msvm_TPMSettingData
- Msvm_VHDSetInformation
- Msvm_VHDSnapshotInformation
- Msvm_VirtualEthernetSwitchNicTeamingMember
- Msvm_VirtualEthernetSwitchNicTeamingSettingData
- Msvm_VirtualMachineToDisks
- Msvm_VirtualSystemCollection
- Msvm_VirtualSystemReferencePoint
- Msvm_VirtualSystemReferencePointExportSettingData
- Msvm_VirtualSystemReferencePointService
- Msvm_VirtualSystemReferencePointSettingData
- Msvm_VirtualSystemSnapshotSettingData
- Msvm_VssService
删除了类:
- Msvm_ResourcePoolComponent
- Msvm_ResourcePoolRegistration
- Msvm_ResourcePoolSettingData
- Msvm_VirtualizationComponent
- Msvm_VirtualizationComponentRegistration
新属性:
- Msvm_BootSourceSettingData: OptionalData
- Msvm_EthernetPortAllocationSettingData: LastKnownSwitchName 和 CompartmentGuid
- Msvm_EthernetSwitchHardwareOffloadData: PacketDirectInUse
- Msvm_EthernetSwitchPortOffloadSettingData: PacketDirectModerationInterval、 PacketDirectModerationCount、 PacketDirectNumProcs、
- Msvm_EthernetSwitchPortSecuritySettingData: EnableFixSpeed10G 和 Reserved
- Msvm_GuestServiceInterfaceComponentSettingData: DefaultEnabledStatePolicy
- Msvm_ProcessorSettingData: EnableHostResourceProtection
- Msvm_StorageAllocationSettingData: StorageQoSPolicyID、 CachingMode 和 SnapshotId
- Msvm_SummaryInformation: InstanceID、 Version、 ThumbnailImageHeight、 ThumbnailImageWidth 和 HostComputerSystemName
- Msvm_Synthetic3DDisplayControllerSettingData: VRAMSizeBytes
- Msvm_VirtualEthernetSwitchSettingData: TeamingEnabled 和 PacketDirectEnabled
- Msvm_VirtualHardDiskSettingData: ParentTimestamp 和 ParentIdentifier
- Msvm_VirtualHardDiskState: 时间戳
- Msvm_VirtualSystemExportSettingData: BackupIntent 和 DifferentialBackupBase
- Msvm_VirtualSystemManagementServiceSettingData: DefaultVirtualHardDiskCachingMode
- Msvm_VirtualSystemMigrationSettingData: RemoveSourceUnmanagedVhds 和 UnmanagedVhds
- Msvm_VirtualSystemSettingData: UserSnapshotType、 GuestControlledCacheTypes、 LockOnDisconnect、 ParentPackage、 AutomaticCriticalErrorActionTimeout、 AutomaticCriticalErrorAction、 ConsoleMode 和 SecureBootTemplateId
新方法:
- Msvm_ImageManagementService 类: ConvertVirtualHardDiskToVHDSet、 DeleteVHDSnapshot、 FindMountedStorageImageInstance、 GetVHDSetInformation、 GetVHDSnapshotInformation、 GetVirtualDiskChanges、 OptimizeVHDSet 和 SetVHDSnapshotInformation
- Msvm_ShutdownComponent 类: InitiateReboot
- Msvm_VirtualSystemManagementService: AddBootSourceSettings、 AddGuestServiceSettings、 DefinePlannedSystem、 ModifyGuestServiceSettings、 RemoveBootSourceSettings、 RemoveGuesServiceSettings、 SetInitialMachineConfigurationData 和 UpgradeSystemVersion
- Msvm_VirtualSystemSnapshotService 类: ConvertToReferencePoint
Windows 8.1 和 Windows Server 2012 R2
Windows 8.1和Windows Server 2012 R2 包括 Hyper-V WMI 提供程序版本 2 的新功能。
- IOPSAllocationUnits、IOPSLimit、IOPSReservation 和 PersistentReservationsSupported 属性已添加到 Msvm_StorageAllocationSettingData 类。
- VirtualDiskId 属性已添加到 Msvm_VirtualHardDiskSettingData 类。
- 有关存储 QoS 的信息已添加到 Msvm_LogicalDisk 和 Msvm_ResourcePool 类的 OperationalStatus 属性。
- Msvm_StorageAlert 类
- ClusterMonitored 属性已添加到 Msvm_EmulatedEthernetPortSettingData 和 Msvm_SyntheticEthernetPortSettingData 类。
- EnableCompression 和 EnableSmbTransport 属性已添加到 Msvm_VirtualSystemMigrationServiceSettingData 类。
- EnableCompression 属性已添加到 Msvm_VirtualSystemMigrationSettingData 类。 TransportType 属性包括有关实时迁移的信息。
- Msvm_CopyFileToGuestJob 类
- Msvm_CopyFileToGuestSettingData 类
- Msvm_GuestFileService 类
- Msvm_GuestService 类
- Msvm_GuestServiceInterfaceComponent 类
- Msvm_GuestServiceInterfaceComponentSettingData 类
- Msvm_RegisteredGuestService 类
- EnhancedSessionModeEnabled 属性已添加到 Msvm_VirtualSystemManagementServiceSettingData 类。
- EnhancedModeState 属性和 InjectNonMaskableInterrupt 方法已添加到 Msvm_ComputerSystem 类。
- BootSourceOrder、LowMmioGapSize、NetworkBootPreferredProtocol、PauseAfterBootFailure、SecureBootEnabled 和 VirtualSystemSubType 属性已添加到 Msvm_VirtualSystemSettingData 类。
- Msvm_BootSourceSettingData 类
- Msvm_BootSourceComponent 类
- Msvm_LogicalIdentity 类
- Msvm_CompatibilityVector 类
- GetSystemCompatibilityVectors 方法已添加到 Msvm_VirtualSystemMigrationService 类。
- ReplicationStateEx、ReplicationHealthEx、EnhancedSessionModeState、VirtualSwitchNames 和 VirtualSystemSubType 属性已添加到 Msvm_SummaryInformation 类。 ReplicationState 和 ReplicationHealth 属性已弃用,并替换为 ReplicationStateEx 和 ReplicationHealthEx 属性。
- PnpDevicePath 属性已添加到 Msvm_MountedStorageImage 类。
- AllowedHashAlgorithms 和 TrustedIssuerCertificateHashes 属性已添加到 Msvm_TerminalServiceSettingData 类。
Windows 8.1和Windows Server 2012 R2 包括虚拟机复制和故障转移恢复的新功能。
ChangeReplicationModeToPrimary、GetReplicationStatisticsEx、InitiateFailback、RemoveReplicationRelationshipEx 和 ResetReplicationStatisticsEx 方法已添加到 Msvm_ReplicationService 类。 GetReplicationStatisticsEx、RemoveReplicationRelationshipEx 和 ResetReplicationStatisticsEx 方法替换了 GetReplicationStatistics、RemoveReplicationRelationship 和 ResetReplicationStatistics 方法。
Msvm_SystemReplicationRelationship 类显示虚拟机与多个复制关系之间的关联。
AdditionalSettings 和 ReplicationProvider 属性已添加到 Msvm_ReplicationSettingData 类。
有关主机到主机提供程序的信息已添加到 Msvm_ReplicationService 类的 CreateReplicationRelationship 和 ModifyReplicationSettings 方法中。
RequestReplicationStateChangeEx 方法已添加到 Msvm_ComputerSystem 类,并替换 RequestReplicationStateChange 方法。 InstanceID 属性现在可以指示扩展复制。 有关扩展复制的详细信息,请参阅 Msvm_ReplicationRelationship。
Msvm_ReplicationSettingData 和 Msvm_ReplicationRelationship 实例具有 1:1 关系,可以使用 Msvm_SettingsDefineState 关联来表示。
Msvm_SettingsDefineState 属性名称 值 ManagedElement 表示 Msvm_ReplicationRelationship 对象 SettingData 表示关联的 Msvm_ReplicationSettingData 对象 Msvm_ReplicationSettingData 可以根据 InstanceId 或 ReplicationRelationship 属性区分复制关系的设置实例。 因此,这些处理单一关系的方法不会更改其签名:
尽管始终可以将 GetReplicationStatistics、 RemoveReplicationRelationship 和 RequestReplicationStateChange 用于主关系,但我们建议改用 GetReplicationStatisticsEx、 RemoveReplicationRelationshipEx 和 RequestReplicationStateChangeEx ,因为它们可以处理主复制关系和扩展复制关系。 有关扩展复制的详细信息,请参阅 Msvm_ReplicationRelationship。
尽管 Msvm_ComputerSystem 类的这些属性继续指示主复制关系的状态,但请改用 Msvm_ReplicationRelationship 对象的这些属性来确定主复制关系和扩展复制关系的当前状态。
属性名称 类型 ReplicationState Uint16 (RO) ReplicationHealth Uint16 (RO) LastReplicationTime DateTime FailedOverReplicationType Uint16 LastApplicationConsistentReplicationTime DateTime LastReplicationType Uint16