Get-DfsrIdRecord
Get-DfsrIdRecord
Gets ID records for replicated files or folders from the DFS Replication database.
Syntax
Parameter Set: PathParameterSet
Get-DfsrIdRecord [-Path] <String[]> [[-ComputerName] <String> ] [ <CommonParameters>]
Parameter Set: UidParameterSet
Get-DfsrIdRecord [-Uid] <String[]> [[-ComputerName] <String> ] [ <CommonParameters>]
Detailed Description
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.
Parameters
-ComputerName<String>
Specifies the name of a replication member computer. If you do not specify this parameter, the cmdlet uses the current computer.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
[local computer] |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Path<String[]>
Specifies an array of paths for files or folders. If you specify this parameter, do not specify the Uid parameter.
Aliases |
FullName |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
-Uid<String[]>
Specifies an array of UIDs for files or folders. If you specify this parameter, do not specify the Path parameter.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- string
Outputs
The output type is the type of the objects that the cmdlet emits.
- DfsrIdRecord
Examples
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"