Export (0) Print
Expand All

Get-NfsNetgroup

Updated: October 15, 2012

Applies To: Windows Server 2012

Get-NfsNetgroup

Gets a netgroup.

Syntax

Parameter Set: default
Get-NfsNetgroup [[-NetGroupName] <String> ] [ <CommonParameters>]

Parameter Set: FromLdap
Get-NfsNetgroup [-LdapServer] <String> [[-LdapNamingContext] <String> ] [-NetGroupName <String> ] [ <CommonParameters>]

Parameter Set: FromNis
Get-NfsNetgroup [-NisServer] <String> [[-NisDomain] <String> ] [-NetGroupName <String> ] [ <CommonParameters>]




Detailed Description

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

Parameters

-LdapNamingContext<String>

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


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-LdapServer<String>

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.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NetGroupName<String>

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


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NisDomain<String>

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


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NisServer<String>

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


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.FileServices.Powershell.Nfs.NetGroup

Examples

Example 1: Get a netgroup from an NFS domain

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


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

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft