Get-NfsOpenFile
Get-NfsOpenFile
Gets information about files that are open on an NFS server for a client computer.
構文
Parameter Set: Query (cdxml)
Get-NfsOpenFile [[-Path] <String[]> ] [[-StateId] <String[]> ] [[-ClientId] <UInt64[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
詳細説明
The Get-NfsOpenFile cmdlet gets information about files that are in a Network File System (NFS) share and hosted by an NFS server, and that a client computer is currently holding open. You can specify a client identifier to view all files that are in an open state for the specified client.
パラメーター
-AsJob
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ClientId<UInt64[]>
Specifies the ID of one or more client computers.
エイリアス |
なし |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Path<String[]>
Specifies the path and file name of an open file on an NFS server. For example, C:\Windows\Setup.log. You can also use a wildcard to specify multiple paths and files.
エイリアス |
なし |
必須? |
false |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
true |
-StateId<String[]>
Specifies the state ID of one or more open files.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
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_NfsOpenFile
例
Example 1: Get all open files on an NFS server
This command gets all open files on an NFS server.
PS C:\> Get-NfsOpenFile
Example 2: Get all open files for a specified client computer on an NFS server
This command gets all open files on an NFS server for a client computer that has the ID 101.
PS C:\> Get-NfsOpenFile -ClientId 101
Example 3: Get all open files on an NFS server by path and file name by using a wildcarda
This command gets all open files on an NFS server that are in the C:\Windows folder and that contain the word Setup.
PS C:\> Get-NfsOpenFile -Path "C:\Windows\Setup*"