Create method of the Win32_ShadowStorage class

The Create method creates differential area storage for the specified Volume on the specified DiffVolume with the specified MaxSpace.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax


uint32 Create(
  [in] string Volume,
  [in] string DiffVolume,
  [in] uint64 MaxSpace
);

Parameters

Volume [in]

Volume that is to be shadowed. Can be as a volume drive letter, mount point, or volume GUID name.

DiffVolume [in]

Volume used to store the shadow differential area. If this parameter is not supplied, the specified Volume is used to store the differential area. Can be as a volume drive letter, mount point, or volume GUID name.

MaxSpace [in]

Initial maximum size of the differential area.

Return value

Return codeDescription
0

Success.

1

Access denied.

2

Invalid argument.

3

Specified volume not found.

4

Specified volume not supported.

5

Shadow copy storage area already exists.

6

Maximum number of shadow storage areas reached.

7

Shadow copy provider veto of the operation.

8

Shadow copy provider not registered.

9

Shadow copy provider failure.

10

Unknown error.

11

Insufficient storage.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

Namespace

Root\CIMV2

MOF

Vss.mof

DLL

Vsswmi.dll

See also

Win32_ShadowStorage

 

 

Community Additions

ADD
Show: