Checking Dfsr Status

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}-v538
Flags                       : 5
Attributes                  : 32
GlobalVersionSequenceNumber : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC5FC}-v538
UpdateSequenceNumber        : 71575496
ParentId                    : {997D8F76-1207-49D7-85C9-DED015105A2F}-v1
FileId                      : 562949953495210
Volume                      : \\.\C:
Fence                       : 3
Clock                       : 130078672846368199
CreateTime                  : 3/15/2013 5:28:04 PM
UpdateTime                  : 3/15/2013 5:28:04 PM
FileHash                    : 173b51c11257a2eb 8c05884560fcfd1d
FileName                    : file.exe
FullPathName                : c:\folder\file.exe
Index                       : 1
ReplicatedFolderName        : folder
Replicated 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 SRV02
ntdsai - Copy.dll            Scheduled    True SRV02
NlsLexicons0046 - Copy.dll   Scheduled    True SRV02
NlsLexicons000a - Copy.dll Downloading    True SRV02
occache - Copy.dll           Scheduled    True SRV02
NlsModels0011 - Copy.dll     Scheduled    True SRV02
NlsLexicons0007 - Copy.dll   Scheduled    True SRV02
NlsLexicons000f - Copy.dll Downloading    True SRV02
NlsLexicons003e - Copy.dll   Scheduled    True SRV02
NlsLexicons0045 - Copy.dll   Scheduled    True SRV02
NlsData001a - Copy.dll     Downloading    True SRV02
ntlanui2 - Copy.dll          Scheduled    True SRV02