Msvm_MountedStorageImage class

Provides detailed information about a manually mounted storage image.

The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.

Syntax

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_MountedStorageImage : CIM_LogicalElement
{
  string   InstanceID;
  string   Caption = "Mounted Storage Image";
  string   Description = "Information about a mounted storage image.";
  string   ElementName = "Mounted Storage Image";
  datetime InstallDate;
  string   Name;
  uint16   OperationalStatus[];
  string   StatusDescriptions[] = { "OK" };
  string   Status = "OK";
  uint16   HealthState = 5;
  uint16   CommunicationStatus;
  uint16   DetailedStatus;
  uint16   OperatingStatus;
  uint16   PrimaryStatus;
  uint16   Type;
  uint16   Access;
  UINT8    PortNumber;
  UINT8    PathId;
  UINT8    TargetId;
  UINT8    Lun;
  string   PnpDevicePath;
};

Members

The Msvm_MountedStorageImage class has these types of members:

Methods

The Msvm_MountedStorageImage class has these methods.

Method Description
DetachVirtualHardDisk Detaches the mounted storage image.

Properties

The Msvm_MountedStorageImage class has these properties.

Access

Data type: uint16

Access type: Read-only

The access under which the storage image is mounted.

Read-only (1)

Read/Write (2)

Caption

Data type: string

Access type: Read-only

A short description of the object. This property is inherited from CIM_ManagedElement, and it always contains "Mounted Storage Image".

CommunicationStatus

Data type: uint16

Access type: Read-only

Indicates the ability of the instrumentation to communicate with the underlying managed element. This property is inherited from CIM_ManagedSystemElement, and it is always set to Null.

Description

Data type: string

Access type: Read-only

A description of the object. This property is inherited from CIM_ManagedElement, and it always contains "Information about a mounted storage image.".

DetailedStatus

Data type: uint16

Access type: Read-only

Compliments the PrimaryStatus property with additional status detail. This property is inherited from CIM_ManagedSystemElement, and it is always set to Null.

ElementName

Data type: string

Access type: Read-only

A display name for the object. This property is inherited from CIM_ManagedElement, and it always contains "Mounted Storage Image".

HealthState

Data type: uint16

Access type: Read-only

The current health of the element. This attribute expresses the health of this element but not necessarily that of its subcomponents. The possible values are 0 to 30, where 5 means the element is entirely healthy and 30 means the element is completely nonfunctional. This property is inherited from CIM_ManagedSystemElement, and it is always set to 5.

InstallDate

Data type: datetime

Access type: Read-only

The date and time the virtual machine configuration was created. This property is inherited from CIM_ManagedSystemElement.

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key

Uniquely identifies an instance of this class. This property is inherited from CIM_ManagedElement, and it is always Null.

Lun

Data type: UINT8

Access type: Read-only

Qualifiers: Key

The SCSI address LUN ID.

Name

Data type: string

Access type: Read-only

The path to the VHD that is mounted. This property is inherited from CIM_ManagedSystemElement.

OperatingStatus

Data type: uint16

Access type: Read-only

Provides current status information for the operational condition of the element and can be used for providing more detail with respect to the value of the EnabledState property. This property is inherited from CIM_ManagedSystemElement, and it is always set to Null.

OperationalStatus

Data type: uint16 array

Access type: Read-only

The current status of the object. This property is inherited from CIM_ManagedSystemElement, and each array element is always set to Null.

PathId

Data type: UINT8

Access type: Read-only

Qualifiers: Key

The SCSI address path ID.

PnpDevicePath

Data type: string

Access type: Read-only

The PNP device path.

Windows 8.1: This value is not supported until Windows 8.1 and Windows Server 2012 R2.

PortNumber

Data type: UINT8

Access type: Read-only

Qualifiers: Key

The SCSI address port number.

PrimaryStatus

Data type: uint16

Access type: Read-only

Provides high level status information. This property should be used in conjunction with the DetailedStatus property to provide high level and detailed health status of the element and its subcomponents. This property is inherited from CIM_ManagedSystemElement, and it is always set to Null.

Status

Data type: string

Access type: Read-only

This property is inherited from CIM_ManagedSystemElement, and it is always set to "OK".

StatusDescriptions

Data type: string array

Access type: Read-only

Strings that describe the various OperationalStatus array values. This property is inherited from CIM_ManagedSystemElement, and each array element is always set to "OK".

TargetId

Data type: UINT8

Access type: Read-only

Qualifiers: Key

The SCSI address target ID.

Type

Data type: uint16

Access type: Read-only

The type of storage image mounted.

Virtual Hard Disk (0)

ISO Image (1)

Remarks

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

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

CIM_LogicalElement

CIM_LogicalElement

Storage Classes