Checking Dfsr Status
Tags: dfs
Get-DfsrFileHash
Get-DfsrFileHash (DFSR) | Microsoft Docs
The Get-DfsrFileHash cmdlet gets a hash value identical to the one computed by the Distributed File System (DFS) Replication service for the specified file or folder during normal replication. Use this cmdlet to determine if you correctly populated a content set, or if a file is in sync between replication partners.
This is used for spot checking, running it across an FS will be costly
Get-DfsrBacklog
This command shows retrieves pending updates between two computers that participate in DFS-R file replication service.
PS C:\> Get-DfsrBacklog -SourceComputerName "MyServer" -GroupName "G01" -FolderName "Folder"
Identifier : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC5FC}-v538Flags : 5Attributes : 32GlobalVersionSequenceNumber : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC5FC}-v538UpdateSequenceNumber : 71575496ParentId : {997D8F76-1207-49D7-85C9-DED015105A2F}-v1FileId : 562949953495210Volume : \\.\C:Fence : 3Clock : 130078672846368199CreateTime : 3/15/2013 5:28:04 PMUpdateTime : 3/15/2013 5:28:04 PMFileHash : 173b51c11257a2eb 8c05884560fcfd1dFileName : file.exeFullPathName : c:\folder\file.exeIndex : 1ReplicatedFolderName : folderReplicated Folder Id : 997d8f76-1207-49d7-85c9-ded015105a2f
Get-DfsrState
This command shows you the current replication state of DFS-R in regard to its DFS replication group partners.
PS C:\> Get-DfsrState -ComputerName "Server" | Format-Table FileName,UpdateState,Inbound,Source* -Auto -Wrap
FileName UpdateState Inbound SourceComputerName-------- ----------- ------- ------------------ntfrs - Copy.exe Scheduled True SRV02ntdsai - Copy.dll Scheduled True SRV02NlsLexicons0046 - Copy.dll Scheduled True SRV02NlsLexicons000a - Copy.dll Downloading True SRV02occache - Copy.dll Scheduled True SRV02NlsModels0011 - Copy.dll Scheduled True SRV02NlsLexicons0007 - Copy.dll Scheduled True SRV02NlsLexicons000f - Copy.dll Downloading True SRV02NlsLexicons003e - Copy.dll Scheduled True SRV02NlsLexicons0045 - Copy.dll Scheduled True SRV02NlsData001a - Copy.dll Downloading True SRV02ntlanui2 - Copy.dll Scheduled True SRV02