The Test-NfsMappedIdentity cmdlet verifies a mapped identity and confirms that it is configured correctly.
The Test-NfsMappedIdentity cmdlet checks a mapped identity for duplicate user identifiers (UIDs) or group identifiers (GIDs).
It also validates that the user accounts are members of the correct group account according to the GIDs that are assigned to them.
Examples
Example 1: Verify a mapped identity that is stored in a AD LDS instance
This command verifies a mapped identity that is stored in a AD LDS instance on a server where this command is run..
Parameters
-AccountName
Specifies the SAMAccountName of the Windows user account or group account of a mapped identity.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
aname, an
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-AccountType
Specifies the Windows account type of a mapped identity.
Valid values are: User and Group.
Parameter properties
Type:
AccountType
Default value:
None
Accepted values:
User, Group
Supports wildcards:
False
DontShow:
False
Aliases:
atype, at
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-GroupIdentifier
Specifies the group identifier of a mapped identity.
Parameter properties
Type:
Int32
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
GroupId, gid
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-LdapNamingContext
Specifies the Lightweight Directory Access Protocol (LDAP) naming context of an NFS identity mapping store.
You can use this parameter to search for mapped identities in a specified naming context.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
dn
Parameter sets
AdAdlds
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-MapFilesPath
Specifies the path of the passwd and group map files from which the Test-NfsMappedIdentity cmdlet obtains a mapped identity.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
MapFiles
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-MappingStore
Specifies the type of identity mapping store from which the Test-NfsMappedIdentity cmdlet gets a mapped identity.
When this parameter is not specified, the Test-NfsMappedIdentity cmdlet obtains the store configuration settings from the NFS server configuration.
Valid values are: AD, LDAP, and MapFiles.
Parameter properties
Type:
MappingStoreType
Default value:
None
Accepted values:
Ad, Ldap, Mapfiles
Supports wildcards:
False
DontShow:
False
Aliases:
store
Parameter sets
DefaultSettings
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-Server
Specifies the LDAP server name of the store that NFS server uses.
This can be a domain name, Active Directory Lightweight Directory Services (AD LDS) server name, or LDAP server name.
When this parameter is not specified, the Test-NfsMappedIdentity 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.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
LdapServer, ADDomainName
Parameter sets
AdAdlds
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-SupplementaryGroups
Specifies a comma-separated list of group names to verify the group membership of an account.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
sg
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-UserIdentifier
Specifies the user identifier of a UNIX user account from which the Test-NfsMappedIdentity cmdlet obtains a mapped identity.
Parameter properties
Type:
Int32
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
UserId, uid
Parameter sets
(All)
Position:
Named
Mandatory:
False
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.