EnumerateShares method of the MSFT_SmbShare class

Enumerates the specified shares.

Syntax

uint32 EnumerateShares(
  [in]  string        ScopeName,
  [in]  boolean       PopulateVolumeProperty,
  [out] MSFT_SmbShare Output[]
);

Parameters

ScopeName [in]

Name of the endpoint to which the shares are scoped.

PopulateVolumeProperty [in]

Set to True to populate the Volume property of the MSFT_SmbShare objects.

Output [out]

An array of instances of the MSFT_SmbShare class that represents the shares.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Smb
MOF
SmbWmiV2.mof
DLL
SmbWmiV2.dll

See also

MSFT_SmbShare