Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-NfsNetgroup

Last Updated: 3/8/2017

SYNOPSIS

Gets a netgroup.

SYNTAX

default (Default)

Get-NfsNetgroup [[-NetGroupName] <String>] [<CommonParameters>]

FromLdap

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

FromNis

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.

PARAMETERS

-LdapNamingContext

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

Type: String
Parameter Sets: FromLdap
Aliases: dn

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-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
Parameter Sets: FromLdap
Aliases: ldap

Required: True
Position: 1
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
Parameter Sets: default
Aliases: name, ngname

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: FromLdap, FromNis
Aliases: name, ngname

Required: False
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
Parameter Sets: FromNis
Aliases: domain

Required: False
Position: 2
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
Parameter Sets: FromNis
Aliases: nis

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Microsoft.FileServices.Powershell.Nfs.NetGroup

NOTES

New-NfsNetgroup

Remove-NfsNetgroup

Set-NfsNetgroupStore

© 2017 Microsoft