Get-DfsrIdRecord
Get-DfsrIdRecord
Gets ID records for replicated files or folders from the DFS Replication database.
语法
Parameter Set: PathParameterSet
Get-DfsrIdRecord [-Path] <String[]> [[-ComputerName] <String> ] [ <CommonParameters>]
Parameter Set: UidParameterSet
Get-DfsrIdRecord [-Uid] <String[]> [[-ComputerName] <String> ] [ <CommonParameters>]
详细说明
The Get-DfsrIdRecord cmdlet gets ID records for replicated files or folders from the Distributed File System (DFS) Replication database. Specify unique identifiers (UIDs) or file paths. A UID consists of a GUID and a version value.
参数
-ComputerName<String>
Specifies the name of a replication member computer. If you do not specify this parameter, the cmdlet uses the current computer.
别名 |
无 |
是否为必需? |
false |
位置? |
2 |
默认值 |
[local computer] |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-Path<String[]>
Specifies an array of paths for files or folders. If you specify this parameter, do not specify the Uid parameter.
别名 |
FullName |
是否为必需? |
true |
位置? |
1 |
默认值 |
无 |
是否接受管道输入? |
True (ByValue, ByPropertyName) |
是否接受通配符? |
false |
-Uid<String[]>
Specifies an array of UIDs for files or folders. If you specify this parameter, do not specify the Path parameter.
别名 |
无 |
是否为必需? |
true |
位置? |
1 |
默认值 |
无 |
是否接受管道输入? |
True (ByValue, ByPropertyName) |
是否接受通配符? |
false |
<CommonParameters>
此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
输入
输入类型是指可通过管道传送给 cmdlet 的对象的类型。
- string
输出
输出类型是 cmdlet 所发出对象的类型。
- DfsrIdRecord
示例
Example 1: Get an ID record for a specified path
This command gets the ID record for a file specified by the file path C:\RF01\Accounting 2013.xlsx.
PS C:\> Get-DfsrIdRecord -Path "C:\RF01\Accounting 2013.xlsx"