Resolve-NfsMappedIdentity

Resolve-NfsMappedIdentity

Resolves the mapping of a Windows user account or group account to a UNIX identifier.

構文

Parameter Set: ById
Resolve-NfsMappedIdentity [-Id] <UInt32> [[-AccountType] <WindowsAccountType> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: ByName
Resolve-NfsMappedIdentity [-AccountName] <String> [[-AccountType] <WindowsAccountType> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

詳細説明

The Resolve-NfsMappedIdentity cmdlet queries a Network File System (NFS) server to resolve the mapping of a Windows user account or group account to a UNIX identifier.

When Resolve-NfsMappedIdentity queries the local NFS server, the local NFS server searches its cache. If the NFS server finds the mapping, the information is returned. If the NFS server mapping does not find the mapping in the server cache, the NFS server queries the configured mapping store. If the NFS server finds the mapping in the mapping store, the mapping is returned, locally cached, and periodically refreshed.

The main purpose of Resolve-NfsMappedIdentity is to perform mapping diagnostics. Administrators can determine whether the NFS server can successfully get the correct mappings for users and groups by using its current configuration.

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 account name of the user or group to resolve. You can use the AccountType parameter to specify whether the AccountName parameter value represents a user or a group.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-AccountType<WindowsAccountType>

Specifies the type of Windows account name or identifier to resolve. Valid values are User and Group.

エイリアス

type

必須?

false

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Id<UInt32>

Specifies the UNIX identifier to resolve to a Windows account name. You can use the AccountType parameter to specify whether the Id parameter value is a user or a group.

エイリアス

uid,gid,Identifier

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.Management.Infrastructure.CimInstance#root/microsoft/windows/nfs/MSFT_NfsMappedIdentity

Example 1: Resolve a Windows user account to a UNIX UID

This command resolves the Windows user account PSPinto to UNIX user identifier 402. The output reflects the identity mapping that the local NFS server returns.

PS C:\> Resolve-NfsMappedIdentity -AccountName "PSPinto" -AccountType "User"

関連トピック

Get-NfsMappedIdentity

New-NfsMappedIdentity

Remove-NfsMappedIdentity

Set-NfsMappedIdentity

Test-NfsMappedIdentity

Get-NfsMappingStore

Install-NfsMappingStore

Set-NfsMappingStore

Test-NfsMappingStore