Partager via


SetNetGroup method of the MSFT_NfsServerTasks class

Adds or removes netgroup members.

Syntax

uint32 SetNetGroup(
  [in] string LdapServer,
  [in] string LdapNamingContext,
  [in] string NetGroupName,
  [in] string AddMember[],
  [in] string RemoveMember[]
);

Parameters

LdapServer [in]

Type: string

The LDAP server name or Active Directory domain name for the netgroup store where the netgroup should be modified.

LdapNamingContext [in]

Type: string

The LDAP naming context to be used when performing LDAP queries to modify netgroup information.

NetGroupName [in]

Type: string

The name of the netgroup.

AddMember [in]

Type: string[]

An array of strings containing names of members to be added to the netgroup.

RemoveMember [in]

Type: string[]

An array of strings containing names of members to be removed from the netgroup.

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_NfsNetgroup

MSFT_NfsServerTasks