Get-AzStorageFileHandle
	
	
	语法
	
		ShareName (默认值)
	
	
		Get-AzStorageFileHandle
    [-ShareName] <String>
    [[-Path] <String>]
    [-Recursive]
    [-DisAllowTrailingDot]
    [-Context <IStorageContext>]
    [-ServerTimeoutPerRequest <Int32>]
    [-ClientTimeoutPerRequest <Int32>]
    [-DefaultProfile <IAzureContextContainer>]
    [-ConcurrentTaskCount <Int32>]
    [-IncludeTotalCount]
    [-Skip <UInt64>]
    [-First <UInt64>]
    [<CommonParameters>]
	 
	
		Share
	
	
		Get-AzStorageFileHandle
    [-ShareClient] <ShareClient>
    [[-Path] <String>]
    [-Recursive]
    [-Context <IStorageContext>]
    [-ServerTimeoutPerRequest <Int32>]
    [-ClientTimeoutPerRequest <Int32>]
    [-DefaultProfile <IAzureContextContainer>]
    [-ConcurrentTaskCount <Int32>]
    [-IncludeTotalCount]
    [-Skip <UInt64>]
    [-First <UInt64>]
    [<CommonParameters>]
	 
	
		Directory
	
	
		Get-AzStorageFileHandle
    [-ShareDirectoryClient] <ShareDirectoryClient>
    [[-Path] <String>]
    [-Recursive]
    [-Context <IStorageContext>]
    [-ServerTimeoutPerRequest <Int32>]
    [-ClientTimeoutPerRequest <Int32>]
    [-DefaultProfile <IAzureContextContainer>]
    [-ConcurrentTaskCount <Int32>]
    [-IncludeTotalCount]
    [-Skip <UInt64>]
    [-First <UInt64>]
    [<CommonParameters>]
	 
	
		File
	
	
		Get-AzStorageFileHandle
    [-ShareFileClient <ShareFileClient>]
    [-Recursive]
    [-Context <IStorageContext>]
    [-ServerTimeoutPerRequest <Int32>]
    [-ClientTimeoutPerRequest <Int32>]
    [-DefaultProfile <IAzureContextContainer>]
    [-ConcurrentTaskCount <Int32>]
    [-IncludeTotalCount]
    [-Skip <UInt64>]
    [-First <UInt64>]
    [<CommonParameters>]
	 
	说明
	
		
              Get-AzStorageFileHandle cmdlet 列出了文件共享、文件目录或文件的文件句柄。
	 
	示例
	示例 1:以递归方式列出文件共享上的所有文件句柄,并按 ClientIp 和 OpenTime 排序
	
		Get-AzStorageFileHandle -ShareName "mysharename" -Recursive | Sort-Object ClientIP,OpenTime
HandleId    Path                  ClientIp       ClientPort OpenTime             LastReconnectTime FileId               ParentId SessionId           ClientName
--------    ----                  --------       ---------- --------             ----------------- ------               -------- ---------           ----------
28506980357                       104.46.105.229 49805      2019-07-29 08:37:36Z                   0                    0        9297571480349046273 myclientvm
28506980537 dir1                  104.46.105.229 49805      2019-07-30 09:28:48Z                   10376363910205800448 0        9297571480349046273 myclientvm
28506980538 dir1                  104.46.105.229 49805      2019-07-30 09:28:48Z                   10376363910205800448 0        9297571480349046273 myclientvm
28582543365                       104.46.119.170 51675      2019-07-30 09:29:32Z                   0                    0        9477733061320772929 myclientvm
28582543375 dir1                  104.46.119.170 51675      2019-07-30 09:29:38Z                   10376363910205800448 0        9477733061320772929 myclientvm
28582543376 dir1                  104.46.119.170 51675      2019-07-30 09:29:38Z                   10376363910205800448 0        9477733061320772929 myclientvm
此命令列出文件共享上的文件句柄,并按 ClientIp、OpenTime 对输出进行排序。
	 
	示例 2:以递归方式列出文件目录上的前 2 个文件句柄
	
		Get-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2'  -Recursive -First 2
HandleId    Path      ClientIp       ClientPort OpenTime             LastReconnectTime FileId               ParentId             SessionId           ClientName
--------    ----      --------       ---------- --------             ----------------- ------               --------             ---------           ----------
24057151779 dir1/dir2 104.46.105.229 50861      2019-06-18 07:39:23Z                   16140971433240035328 11529285414812647424 9549812641162070049 myclientvm
24057151780 dir1/dir2 104.46.105.229 50861      2019-06-18 07:39:23Z                   16140971433240035328 11529285414812647424 9549812641162070049 myclientvm
此命令以递归方式列出文件目录上的前 2 个文件句柄。
	 
	示例 3:列出文件的第 3 个到第 6 个文件句柄
	
		Get-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2/test.txt' -skip 2 -First 4
HandleId    Path               ClientIp       ClientPort OpenTime             LastReconnectTime FileId              ParentId             SessionId           ClientName
--------    ----               --------       ---------- --------             ----------------- ------              --------             ---------           ----------
24055513248 dir1/dir2/test.txt 104.46.105.229 49817      2019-06-18 08:21:59Z                   9223407221226864640 16140971433240035328 9338416139169958321 myclientvm
24055513249 dir1/dir2/test.txt 104.46.105.229 49817      2019-06-18 08:21:59Z                   9223407221226864640 16140971433240035328 9338416139169958321 myclientvm
24055513252 dir1/dir2/test.txt 104.46.105.229 49964      2019-06-18 08:22:54Z                   9223407221226864640 16140971433240035328 9338416138431762125 myclientvm
24055513253 dir1/dir2/test.txt 104.46.105.229 49964      2019-06-18 08:22:54Z                   9223407221226864640 16140971433240035328 9338416138431762125 myclientvm
此命令列出文件的第 3 个到第 6 个文件句柄。
	 
	参数
		-ClientTimeoutPerRequest
		客户端每个请求的最大执行时间(以秒为单位)。
		参数属性
		
				| 类型: | Nullable<T>[Int32] | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
				| 别名: | ClientTimeoutPerRequestInSeconds | 
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-ConcurrentTaskCount
		并发异步任务的总数。
默认值为 10。
		参数属性
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-Context
		Azure 存储上下文对象
		参数属性
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | True | 
						| 来自管道的值(按属性名称): | True | 
						| 来自剩余参数的值: | False | 
				
			 
		-DefaultProfile
		用于与 Azure 通信的凭据、帐户、租户和订阅。
		参数属性
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-DisAllowTrailingDot
		禁止尾随点 (.) 后缀目录和文件名。
		参数属性
		
		参数集
			
				
					ShareName 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-First
		仅获取第一个“n”对象。
		参数属性
		
				| 类型: | UInt64 | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-IncludeTotalCount
		报告数据集(整数)中的对象数,后跟对象。 如果 cmdlet 无法确定总计数,则返回“未知总计计数”。
目前,此参数不执行任何作。
		参数属性
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-Path
		现有文件/目录的路径。
		参数属性
		
				| 类型: | String | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					ShareName 
					
						
					
				
				
						| Position: | 1 | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
			
				
					Share 
					
						
					
				
				
						| Position: | 1 | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
			
				
					Directory 
					
						
					
				
				
						| Position: | 1 | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-Recursive
		列表以递归方式处理。
仅适用于文件目录。
		参数属性
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-ServerTimeoutPerRequest
		服务器为每个请求超时(以秒为单位)。
		参数属性
		
				| 类型: | Nullable<T>[Int32] | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
				| 别名: | ServerTimeoutPerRequestInSeconds | 
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-ShareClient
		ShareClient 对象指示文件/目录将列出文件句柄的共享
		参数属性
		
		参数集
			
				
					Share 
					
						
					
				
				
						| Position: | 0 | 
						| 必需: | True | 
						| 来自管道的值: | True | 
						| 来自管道的值(按属性名称): | True | 
						| 来自剩余参数的值: | False | 
				
			 
		-ShareDirectoryClient
		ShareDirectoryClient 对象指示文件/目录将列出文件句柄的基文件夹
		参数属性
		
		参数集
			
				
					Directory 
					
						
					
				
				
						| Position: | 0 | 
						| 必需: | True | 
						| 来自管道的值: | True | 
						| 来自管道的值(按属性名称): | True | 
						| 来自剩余参数的值: | False | 
				
			 
		-ShareFileClient
		ShareFileClient 对象指示要列出文件句柄的文件。
		参数属性
		
		参数集
			
				
					File 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | True | 
						| 来自管道的值(按属性名称): | True | 
						| 来自剩余参数的值: | False | 
				
			 
		-ShareName
		将列出文件/目录的文件共享的名称。
		参数属性
		
				| 类型: | String | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					ShareName 
					
						
					
				
				
						| Position: | 0 | 
						| 必需: | True | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-Skip
		忽略第一个“n”对象,然后获取剩余的对象。
		参数属性
		
				| 类型: | UInt64 | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		CommonParameters
		
			此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
		 
	
			
			
				
			
			
			
				
			
			
			
				
			
			
			
				
			
	输出