次の方法で共有


MSFT_SmbShareAccessControlEntry class

Represents the access permissions that have been granted to a share's users.

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

Syntax

[ClassVersion("7"), DisplayName("Smb Share Access Control Entry"), AMENDMENT]
class MSFT_SmbShareAccessControlEntry
{
  string Name;
  string ScopeName;
  string AccountName;
  uint32 AccessControlType;
  uint32 AccessRight;
};

Members

The MSFT_SmbShareAccessControlEntry class has these types of members:

Properties

The MSFT_SmbShareAccessControlEntry class has these properties.

AccessControlType

Data type: uint32

Access type: Read-only

Allow (0)

Deny (1)

AccessRight

Data type: uint32

Access type: Read-only

The SMB-style access right that is granted to the trustee. Custom is returned when a share ACE is encountered that does not specify a set of access rights that correspond to one of the SMB-style access rights.

Full (0)

Change (1)

Read (2)

Custom (3)

AccountName

Data type: string

Access type: Read-only

The name of the account to which the access right is granted.

Name

Data type: string

Access type: Read-only

Name of the share.

ScopeName

Data type: string

Access type: Read-only

Name of the endpoint to which the share is scoped.

Remarks

There will be one instance of this class per share per ACL entry in the share's security descriptor.

Requirements

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