Partager via


Msvm_VirtualHardDiskInfo class

Provides detailed information about an existing virtual hard disk (VHD) image.

The following syntax is simplified Managed Object Format (MOF) code.

Syntax

[AMENDMENT]
class Msvm_VirtualHardDiskInfo
{
  uint16  Type;
  uint64  FileSize;
  uint64  MaxInternalSize;
  boolean InSavedState;
  boolean InUse;
  string  ParentPath;
};

Members

The Msvm_VirtualHardDiskInfo class has these types of members:

Properties

The Msvm_VirtualHardDiskInfo class has these properties.

FileSize

Data type: uint64

Access type: Read-only

The size of the VHD file on the physical disk (the actual amount of storage being consumed by the VHD), in bytes.

InSavedState

Data type: boolean

Access type: Read-only

Indicates whether this VHD is associated with a virtual machine (VM) in a saved state.

InUse

Data type: boolean

Access type: Read-only

Indicates whether this VHD is currently mounted.

Windows Server 2008: The InUse property is TRUE if the VHD is mounted or if it is in use by a VM.

MaxInternalSize

Data type: uint64

Access type: Read-only

The maximum size of the VHD as viewable by the VM, in bytes. The specified size will be rounded up to the next largest multiple of the sector size.

ParentPath

Data type: string

Access type: Read-only

The parent of the VHD. If the VHD does not have a parent, then this field is empty.

Type

Data type: uint16

Access type: Read-only

The type of VHD.

Fixed (2)

Dynamic (3)

Differencing (4)

Remarks

Access to the Msvm_VirtualHardDiskInfo class might be restricted by UAC Filtering. For more information, see User Account Control and WMI.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
End of client support
None supported
End of server support
Windows Server 2012 R2
Namespace
Root\Virtualization
MOF
WindowsVirtualization.mof

See also

Storage Classes