Get-NfsNetgroup
Get-NfsNetgroup
Gets a netgroup.
構文
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>]
詳細説明
The Get-NfsNetgroup cmdlet gets a netgroup from a configured netgroup store that Network File System (NFS) server uses.
パラメーター
-LdapNamingContext<String>
Specifies the Lightweight Directory Access Protocol (LDAP) naming context of the netgroup store.
エイリアス |
dn |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
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.
エイリアス |
ldap |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-NetGroupName<String>
Specifies the name of a netgroup. If no name is specified, all netgroups in the specified or configured store are enumerated.
エイリアス |
name,ngname |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-NisDomain<String>
Specifies the domain of an NIS server that stores information about netgroups.
エイリアス |
domain |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-NisServer<String>
Specifies the host name of an NIS server that stores information about netgroups.
エイリアス |
nis |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Microsoft.FileServices.Powershell.Nfs.NetGroup
例
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"