Share via


GetSharePermissionByName method of the MSFT_NfsServerTasks class

Retrieves by share name the permissions that have been set for an NFS share.

Syntax

uint32 GetSharePermissionByName(
  [in]  string                  Name,
  [in]  string                  NetworkName,
  [in]  string                  ClientName,
  [in]  string                  ClientType,
  [in]  string                  Permission,
  [out] MSFT_NfsSharePermission Output[]
);

Parameters

Name [in]

Type: string

The name (alias) for the share.

NetworkName [in]

Type: string

The failover cluster client access point (network name) through which the highly available NFS share is exported.

ClientName [in]

Type: string

The hostname or IP address of the client, or the name of the netgroup for which share permissions are being retrieved. Share permissions can be retrieved for individual client computers or netgroups.

ClientType [in]

Type: string

The type of client indicated by the ClientName parameter. Share permissions can be retrieved for individual client computers or netgroups. One of the following values:

host

An individual computer or host.

netgroup

A netgroup.

clientgroup

A client group.

builtin

Retrieves "All Machines" permissions.

Permission [in]

Type: string

The type of access to be retrieved for the NFS share. One of the following values:

"no-access"

Denied access to the share.

"readwrite"

Read/write access to the share.

"readonly"

Read-only access to the share.

Output [out]

Type: MSFT_NfsSharePermission[]

An array of MSFT_NfsSharePermission objects that contain the permissions.

Requirements

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

See also

MSFT_NfsSharePermission

MSFT_NfsServerTasks