Get-Nfs Netgroup

Gets a netgroup.

Syntax

Get-NfsNetgroup
   [[-NetGroupName] <String>]
   [<CommonParameters>]
Get-NfsNetgroup
   [[-NetGroupName] <String>]
   [-LdapServer] <String>
   [[-LdapNamingContext] <String>]
   [<CommonParameters>]
Get-NfsNetgroup
   [[-NetGroupName] <String>]
   [-NisServer] <String>
   [[-NisDomain] <String>]
   [<CommonParameters>]

Description

The Get-NfsNetgroup cmdlet gets a netgroup from a configured netgroup store that Network File System (NFS) server uses.

Examples

Example 1: Get a netgroup from an NFS domain

PS C:\> Get-NfsNetgroup -LdapServer "Contoso.com" -NetGroupName "ExchangeServers"


NetgroupName          : ExchangeServers
NetgroupNamingContext : CN=mappedidentity,DC=Contoso,DC=com
NetgroupMembers       : {}

This command gets the netgroup that is named ExchangeServers from an NFS domain netgroup store that is named Contoso.com.

Required Parameters

-LdapServer

Gets the netgroups that are configured on a specified LDAP server. The LDAP server name can be a domain name, Active Directory Lightweight Directory Services (AD LDS) server name, or other LDAP server.

If you do not specify the LdapServer parameter or a Network Information Service (NIS) server, the Get-NfsNetgroup cmdlet uses the netgroup store configuration that exists on the local NFS server.

Type: String
Aliases: ldap
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-NisServer

Specifies the host name of an NIS server that stores information about netgroups.

Type: String
Aliases: nis
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Optional Parameters

-LdapNamingContext

Specifies the Lightweight Directory Access Protocol (LDAP) naming context of the netgroup store.

Type: String
Aliases: dn
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-NetGroupName

Specifies the name of a netgroup. If no name is specified, all netgroups in the specified or configured store are enumerated.

Type: String
Aliases: name, ngname
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-NisDomain

Specifies the domain of an NIS server that stores information about netgroups.

Type: String
Aliases: domain
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Outputs

Microsoft.FileServices.Powershell.Nfs.NetGroup