次の方法で共有


MSFT_DfsNamespaceAccess class

Controls the access permissions for a DFS folder.

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

Syntax

[dynamic, provider("dfsncimprov"), ClassVersion("1.0"), AMENDMENT]
class MSFT_DfsNamespaceAccess
{
  uint32 AccessType;
  string AccountName;
  string NamespacePath;
};

Members

The MSFT_DfsNamespaceAccess class has these types of members:

Methods

The MSFT_DfsNamespaceAccess class has these methods.

Method Description
GetNamespaceAccessRights Retrieves access permissions for the specified DFS folder.
GrantNamespaceAccessRights Grants access permissions for a DFS folder to the specified users or groups.
RemoveNamespaceAccessRights Removes access permissions for a DFS folder for the specified users or groups.
RevokeNamespaceAccessRights Revokes access permissions for a DFS folder from the specified users or groups.

Properties

The MSFT_DfsNamespaceAccess class has these properties.

AccessType

Data type: uint32

Access type: Read-only

Gets or sets the type of access to be changed for the users or groups on a DFS folder. The default value is "enumerate".

"enumerate" (0)

The right to view and enumerate the contents of a DFS folder.

AccountName

Data type: string

Access type: Read-only

Qualifiers: key

Gets or sets the names of users or groups for which to change access permissions on a DFS folder.

NamespacePath

Data type: string

Access type: Read-only

Qualifiers: key

Gets or sets the Universal Naming Convention (UNC) path of the DFS folder on which to change access permissions. The UNC path has a format of \\HostName\SharedName[\ObjectName]*, where:

  • The HostName component represents either the host name of a server or the domain name of a domain that hosts resources.
  • The SharedName component represents the share name or the name of the resource that is being accessed.
  • Each ObjectName component represents the name of a directory on the resource that is being accessed.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\dfsn
MOF
DfsNCimProv.mof
DLL
DfsNCimProv.dll