Create method of the Win32_ClusterShare class

Creates a new Win32_ClusterShare instance.

Syntax

static uint32 Create(
  [in]           string                   Path,
  [in]           string                   Name,
  [in]           uint32                   Type,
  [in, optional] uint32                   MaximumAllowed,
  [in, optional] string                   Description,
  [in, optional] string                   Password,
  [in, optional] Win32_SecurityDescriptor Access
);

Parameters

Path [in]

Local path of the Windows share.

Example, "C:\Program Files".

Name [in]

The alias to a path set up as a share on a computer system running Windows.

Example, "public".

Type [in]

Type of resource being shared. Types include: disk drives, print queues, interprocess communications (IPC), and general devices.

0 (0x0)

Disk Drive

1 (0x1)

Print Queue

2 (0x2)

Device

3 (0x3)

IPC

2147483648 (0x80000000)

Disk Drive Admin

2147483649 (0x80000001)

Print Queue Admin

2147483650 (0x80000002)

Device Admin

2147483651 (0x80000003)

IPC Admin

MaximumAllowed [in, optional]

Limit on the maximum number of users allowed to use this resource concurrently.

Description [in, optional]

Description of the object.

Password [in, optional]

TBD

Access [in, optional]

Optional embedded instance of a Win32_SecurityDescriptor class that contains the security descriptor for the new share.

Requirements

Requirement Value
Minimum supported client
Windows 7
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMV2
MOF
Cimwin32.mof
DLL
CIMWin32.dll

See also

Win32_ClusterShare