Partager via


NewWTDisk method of the WT_Disk class

Creates a new virtual disk.

Windows Server 2012 R2: This method is deprecated. Use CreateRamWTDisk, CreateVhdWTDisk, or ImportWTDisk instead.

Syntax

WT_Disk NewWTDisk(
  [in] string  DevicePath,
  [in] string  Description,
  [in] boolean ClearPartTable,
  [in] uint32  SizeInMB
);

Parameters

DevicePath [in]

Full path to the VHD file.

Description [in]

Friendly description of the iSCSI Disk.

ClearPartTable [in]

Deprecated; do not use.

SizeInMB [in]

The iSCSI Disk Size, in megabytes.

Remarks

If the Microsoft iSCSI Target Server service is running on a Microsoft Failover Cluster, a cluster resource is created to represent the new virtual disk (VHD). The cluster resource resides in the same resource group as the physical disk where the VHD is stored.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Wmi
MOF
WmiWtProvider.mof
DLL
WtWmiProv.dll

See also

WT_Disk

CreateRamWTDisk

CreateVhdWTDisk

ImportWTDisk