Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Test-NfsMappedIdentity

Test-NfsMappedIdentity

microsoft.fileservices.powershell.nfs.dll

Synopsis

Verifies that a mapped identity is correctly configured.

Syntax

Test-NfsMappedIdentity [-AccountName] [-AccountType] [-GroupIdentifier] [-MappingStore] [-SupplementaryGroups] [-UserIdentifier] [<CommonParameters>]

Test-NfsMappedIdentity [-AccountName] [-AccountType] [-GroupIdentifier] [-LdapNamingContext] [-Server] [-SupplementaryGroups] [-UserIdentifier] [-MappingStore] [<CommonParameters>]

Test-NfsMappedIdentity [-AccountName] [-AccountType] [-GroupIdentifier] [-MapFilesPath] [-SupplementaryGroups] [-UserIdentifier] [-MappingStore] [<CommonParameters>]

Detailed Description

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.

Parameters

-AccountName <String>

Specifies the SAMAccountNam of the Windows user account or group account of a mapped identity.

Aliases

aname,an

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-AccountType <AccountType>

Specifies the Windows account type of a mapped identity. Supported values are: User and Group.

Aliases

atype,at

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-GroupIdentifier <Int32>

Specifies the group identifier of a mapped identity.

Aliases

GroupId,gid

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-LdapNamingContext <String>

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.

Aliases

dn

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-MapFilesPath <String>

Specifies the path of the passwd and group map files from which the Test-NfsMappedIdentity cmdlet obtains a mapped identity.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-MappingStore <MappingStoreType>

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.

Aliases

store

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-Server <String>

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.

Aliases

LdapServer,ADDomainName

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-SupplementaryGroups <String>

Specifies a comma-separated list of group names to verify the group membership of an account.

Aliases

sg

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-UserIdentifier <Int32>

Specifies the user identifier of a UNIX user account from which the Test-NfsMappedIdentity cmdlet obtains a mapped identity.

Aliases

UserId,uid

Required?

false

Position

named

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type

Nothing

Notes

None

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..

PS C:\> Test-NfsMappedIdentity -MappingStore "LDAP" -AccountName "JCool" -AccountType "User" -Verbose
VERBOSE: No errors found.

Online Version
Get-NfsMappedIdentity
New-NfsMappedIdentity
Remove-NfsMappedIdentity
Resolve-NfsMappedIdentity
Set-NfsMappedIdentity
Get-NfsMappingStore
Install-NfsMappingStore
Set-NfsMappingStore
Test-NfsMappingStore