Get-NfsMappedIdentity
Get-NfsMappedIdentity
Gets an NFS mapped identity.
構文
Parameter Set: DefaultSettings
Get-NfsMappedIdentity -AccountType <AccountType> [-AccountName <String> ] [-GroupIdentifier <Int32> ] [-MappingStore <MappingStoreType> ] [-UserIdentifier <Int32> ] [ <CommonParameters>]
Parameter Set: AdAdlds
Get-NfsMappedIdentity -AccountType <AccountType> -MappingStore <MappingStoreType> [-AccountName <String> ] [-GroupIdentifier <Int32> ] [-LdapNamingContext <String> ] [-Server <String> ] [-UserIdentifier <Int32> ] [ <CommonParameters>]
Parameter Set: MapFiles
Get-NfsMappedIdentity -AccountType <AccountType> -MappingStore <MappingStoreType> [-AccountName <String> ] [-GroupIdentifier <Int32> ] [-MapFilesPath <String> ] [-UserIdentifier <Int32> ] [ <CommonParameters>]
詳細説明
The Get-NfsMappedIdentity cmdlet gets a Network File System (NFS) mapped identity.
A mapped identity associates a Windows user account or group account to a UNIX user account or group account. A user ID (UID) or group ID (GID) identifies a UNIX account namespace. These elements are associated with the corresponding elements of a Windows account namespace: a user name or a group name. By using a mapped identity, a user who is logged on to a UNIX domain can access shared resources in a Windows domain without having to log on to the Windows domain.
For more information about NFS, see Network File System. For more information about NFS account mapping, see NFS Account Mapping Guide and Identity Management for UNIX.
パラメーター
-AccountName<String>
Specifies the SAMAccountName of the Windows user account or group account of a mapped identity.
エイリアス |
aname,an |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-AccountType<AccountType>
Specifies the Windows account type of a mapped identity. Supported values are User and Group.
エイリアス |
atype,at |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-GroupIdentifier<Int32>
Specifies the group identifier of a user or group account.
エイリアス |
GroupId,gid |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-LdapNamingContext<String>
Specifies the Lightweight Directory Access Protocol (LDAP) naming context of the NFS identity mapping store. You can use this parameter to search for mapped identities in the specified naming context.
エイリアス |
dn |
必須? |
false |
位置は? |
named |
既定値 |
DefaultNamingContext |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-MapFilesPath<String>
Specifies the path of the passwd and group map files from which the Get-NfsMappedIdentity cmdlet gets a mapped identity.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
%SystemRoot\System32\Drivers\etc\ |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-MappingStore<MappingStoreType>
Specifies the type of identity mapping store from which the Get-NfsMappedIdentity cmdlet gets a mapped identity. When this parameter is not specified, the cmdlet gets the store configuration settings from the NFS server configuration where this command is run configuration where this command is run. Valid values are: AD, LDAP, and MapFiles.
エイリアス |
store |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Server<String>
Specifies the LDAP instance name of the store that NFS server uses. This can be an Active Directory domain name, Active Directory Lightweight Directory Services (AD LDS) server name, or LDAP server name. When this parameter is not specified, the cmdlet tries to connect to either the LDAP store on the local computer at port 389 when MappingStore is LDAP, or the Active Directory domain of the computer when MappingStore is Active Directory.
エイリアス |
LdapServer,ADDomainName |
必須? |
false |
位置は? |
named |
既定値 |
localhost:389 |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-UserIdentifier<Int32>
Specifies the UID of the user account.
エイリアス |
UserId,uid |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- System.FileServices.Management.Nfs.UserMappedIdentity, System.FileServices.Management.Nfs.GroupMappedIdentity
例
Example 1: Get a mapped identity for a user account by using a specified name
This command gets all user account mapped identities from a configured AD LDS or RFC 2307–compliant LDAP store instance. In this example, the command returns PrimaryGroup and SupplementaryGroups only when the configured mapping store is MapFiles.
PS C:\> Get-NfsMappedIdentity -MappingStore "LDAP" -AccountType "User" -AccountName "RPatel"
Example 2: Get all group account mapped identities from a specific store instance
This command gets all mapped identities in the Administrator group from a configured AD LDS or RFC 2307–compliant LDAP store instance.
PS C:\> Get-NfsMappedIdentity -MappingStore "LDAP" -AccountType "Group" –GroupName "Administrators"
Example 3: Get a mapped identity for a group account by using a specified Id
This command gets a mapped identity for the group account that has the GID 99, from a configured AD LDS or RFC 2307–compliant LDAP store instance.
PS C:\> Get-NfsMappedIdentity -MappingStore "LDAP" -AccountType "Group" -GroupIdentifier "GID99"
Example 4: Get all user account mapped identities from a specific mapping store
This command gets all user account mapped identities from a configured AD LDS or RFC 2307–compliant LDAP store instance. PrimaryGroup and SupplementaryGroups are returned only when the configured mapping store is MapFiles.
C:\PS> Get-NfsMappedIdentity -MappingStore "LDAP" -AccountType "User"
Example 5: Get all user account mapped identities from a mapping store that is specified in the NFS Server configuration settings
This command gets all user account mapped identities from a mapping store that is specified in the NFS server configuration settings.
PS C:\> Get-NfsMappedIdentity -AccountType "User"