Share via


GetSharePermission method of the MSFT_NfsServerTasks class

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

Syntax

uint32 GetSharePermission(
  [in]  string                  Path,
  [in]  string                  ClientName,
  [in]  string                  ClientType,
  [in]  string                  Permission,
  [out] MSFT_NfsSharePermission Output[]
);

Parameters

Path [in]

Type: string

The local path to the exported share on the Windows NFS server.

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