Partager via


RevokeSharePermission method of the MSFT_NfsServerTasks class

Removes the specified client from the list of share permissions configured on the share.

Syntax

uint32 RevokeSharePermission(
  [in] string Path,
  [in] string ClientName,
  [in] string ClientType
);

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 revoked. Share permissions can be revoked for individual client computers or netgroups.

ClientType [in]

Type: string

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

host

An individual computer or host.

netgroup

A netgroup.

clientgroup

A client group.

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