Get-NfsNetgroup
Get-NfsNetgroup
Gets a netgroup.
Sintaxis
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>]
Descripción detallada
The Get-NfsNetgroup cmdlet gets a netgroup from a configured netgroup store that Network File System (NFS) server uses.
Parámetros
-LdapNamingContext<String>
Specifies the Lightweight Directory Access Protocol (LDAP) naming context of the netgroup store.
Alias |
dn |
¿Requerido? |
false |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
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.
Alias |
ldap |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-NetGroupName<String>
Specifies the name of a netgroup. If no name is specified, all netgroups in the specified or configured store are enumerated.
Alias |
name,ngname |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-NisDomain<String>
Specifies the domain of an NIS server that stores information about netgroups.
Alias |
domain |
¿Requerido? |
false |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-NisServer<String>
Specifies the host name of an NIS server that stores information about netgroups.
Alias |
nis |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.FileServices.Powershell.Nfs.NetGroup
Ejemplos
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"