Get-NfsNetgroup
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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | dn |
Parameter sets
FromLdap
| Position: | 2 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | 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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ldap |
Parameter sets
FromLdap
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-NetGroupName
Specifies the name of a netgroup. If no name is specified, all netgroups in the specified or configured store are enumerated.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | name, ngname |
Parameter sets
default
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-NisDomain
Specifies the domain of an NIS server that stores information about netgroups.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | domain |
Parameter sets
FromNis
| Position: | 2 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-NisServer
Specifies the host name of an NIS server that stores information about netgroups.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | nis |
Parameter sets
FromNis
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.