# DFS



# Clear DFS Problems

<div class="OutlineGroup SCXO133981406 BCX0" id="bkmrk-script%C2%A0-purge-temp-a">1. <span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">Script</span></span><span class="EOP SCXO133981406 BCX0"> </span>
2. <span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">Purge Temp Archive Bit</span></span><span class="EOP SCXO133981406 BCX0"> </span>
3. <span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">Restart service and Check bandwidth</span></span><span class="EOP SCXO133981406 BCX0"> </span>
4. <span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">Check DFS Checker event logs</span></span><span class="EOP SCXO133981406 BCX0"> </span>

</div><span class="EOP SCXO133981406 BCX0"> </span>

<span class="EOP SCXO133981406 BCX0"> </span>

<span class="EOP SCXO133981406 BCX0"> </span>

<span class="EOP SCXO133981406 BCX0"> </span>

<span class="EOP SCXO133981406 BCX0"> </span>

<span class="EOP SCXO133981406 BCX0"> </span>

<span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">Replication State codes are as follow:</span></span><span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">0: Uninitialized</span></span><span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">1: Initialized</span></span><span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">2: Initial Sync</span></span><span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">3: Auto Recovery</span></span><span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">4: Normal</span></span><span class="EOP SCXO133981406 BCX0"> </span>

<span class="TextRun SCXO133981406 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO133981406 BCX0">5: In Error</span></span><span class="EOP SCXO133981406 BCX0"></span>

# DFS Backlog Check

<span class="EOP SCXO259404129 BCX0"> </span>

<div class="OutlineElement Ltr SCXO259404129 BCX0" id="bkmrk-"><div class="WACImageContainer SCXO259404129 BCX0" role="presentation"><span aria-hidden="true" class="WACAltTextDescribedBy SCXO259404129 BCX0" id="bkmrk--1"></span>![Machine generated alternative text:
‘DES Management
DFS Management
Namespaces
R Replication
.3 DeployedApps
Harlan
- 
J Memberships I Connections Replicated Folders Delegation
(D/%rhp
DFS Root
i-’uoiicauon 
Not Published](http://bookstack.coltscomputer.services/uploads/images/gallery/2023-12/embedded-image-repxufey.png)</div></div><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">@echo off</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">SET LSRV="RHSC-17-SRV02"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">Set BKSRV1="RHSC-00-SRV12"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">SET BKSRV2="RHSC-01-SRV13"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">SET RGName1="DikeIA"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">SET RFName1="DikeIA"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">SET RGName2="DeployedApps"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">SET RFName2="DeployedApps"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Testing %LSRV% %BKSRV1% %RGNAME1% %RFName1%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:%LSRV% /receivingmember:%BKSRV1% /RGName:%RGNAME1% /RFName:%RFName1%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Testing %LSRV% %BKSRV2% %RGNAME1% %RFName1%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:%LSRV% /receivingmember:%BKSRV2% /RGName:%RGNAME1% /RFName:%RFName1%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Testing %LSRV% %BKSRV1% %RGNAME2% %RFName2%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:%LSRV% /receivingmember:%BKSRV1% /RGName:%RGNAME2% /RFName:%RFName2%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Testing %LSRV% %BKSRV2% %RGNAME2% %RFName2%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:%LSRV% /receivingmember:%BKSRV2% /RGName:%RGNAME2% /RFName:%RFName2%</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">pause</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">cls</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrconnectioninfo where "LastSyncTime&lt;&gt;'99990101000000.000000-000' and state='3'" get membername, partnername, ReplicationGroupName, state</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Replication Test</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo If Above states "No Instances(s) Available." then 1st test good</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">pause</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">cls</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrreplicatedfolderinfo where "state='5'" get membername, ReplicationGroupName, state</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Connection Test</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo If Above states "No Instances(s) Available." then 2nd test good</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">pause</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">cls</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrconnectioninfo get membername, partnername, ReplicationGroupName, state, LastSyncTime</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Replication Test</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo If Above has some information and no errors then 3rd test good</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">pause</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">cls</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Replication Test</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrreplicatedfolderinfo get membername, ReplicationGroupName, state</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo Connection Test</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo State should be "4" for all of these</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo.</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">echo If Above has some information and no errors then 4th test good</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">pause</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">cls</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-10-srv01 /receivingmember:rhsc-01-srv13 /RGName:HollandIA /RFName:"HollandDFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-16-vsrv01 /receivingmember:rhsc-01-srv13 /RGName:AnkenyIA /RFName:"AnkenyIA"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-16-vsrv01 /receivingmember:rhsc-00-srv12 /RGName:AnkenyIA /RFName:"AnkenyIA"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-18-vsrv02 /receivingmember:rhsc-00-srv12 /RGName:FloraE /RFName:"DFSFloraE"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-24-srv01 /receivingmember:rhsc-01-srv13 /RGName:Harlan /RFName:"DFS Root"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-26-srv01 /receivingmember:rhsc-00-srv12 /RGName:Williams /RFName:"DFS Root"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-26-srv01 /receivingmember:rhsc-01-srv13 /RGName:Williams /RFName:"DFS Root"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-13-SRV02 /receivingmember:rhsc-01-srv13 /RGName:BloomingtonIL /RFName:"BloomingtonDFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-13-SRV02 /receivingmember:rhsc-00-srv12 /RGName:BloomingtonIL /RFName:"BloomingtonDFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-01-SRV01 /receivingmember:rhsc-01-srv13 /RGName:"Remington Main" /RFName:"NEW DFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-01-SRV01 /receivingmember:rhsc-00-srv12 /RGName:"Remington Main" /RFName:"NEW DFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-22-srv01 /receivingmember:rhsc-01-srv13 /RGName:Eldora /RFName:"Eldora"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-22-srv01 /receivingmember:rhsc-00-srv12 /RGName:Eldora /RFName:"Eldora"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-28-vsrv01 /receivingmember:rhsc-01-srv13 /RGName:Sturgis /RFName:"Sturgis DFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-22-vsrv01 /receivingmember:rhsc-00-srv12 /RGName:Sturgis /RFName:"Sturgis DFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-23-srv01 /receivingmember:rhsc-01-srv13 /RGName:Lincoln /RFName:"DFS Root"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:rhsc-23-srv01 /receivingmember:rhsc-00-srv12 /RGName:Lincoln /RFName:"DFS Root"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="TextRun SCXO259404129 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO259404129 BCX0">dfsrdiag backlog /sendingmember:REED-01-SRV02 /receivingmember:REED-01-SRV01 /RGName:Reed /RFName:"DFS"</span></span><span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"> </span>

<span class="EOP SCXO259404129 BCX0"></span>

# DFS Checker

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Overview:</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">DFS Checker is an Accent written software. The installation in hosted on FileVista (DFSCheckerClient\_1\_1\_5). The software is installed on a server. The server then checks into the main DFS Checker server (ACS-00-VSRV16) hourly. VSRV16 has timetables and pathways configured on it. The client SRV will scan those pathways for files and give a total of files and size to VSRV16. VSRV16 then puts together a report to compare the total number of files between two DFS replicant servers. The purpose is to show that if DFS replication has stopped, then as new files are added, there will be a difference between the two that will become apparent on the report.</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Note: if each SRV had 100 files that the other does not, the total would then be zero.</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">These email are set to be delivered nightly. If they are not received:</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Restart service - ACS-00-VSRV17 - DFS Checker Service</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">If you do not receive email</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Restart service - ACS-00-VSRV13 - SQL Server</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Restart service - ACS-00-VSRV17 - DFS Checker Service</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">If you do not receive email</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Reboot - ACS-00-VSRV13 - SQL Server</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Restart service - ACS-00-VSRV17 - DFS Checker Service</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">If you do not receive email</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">Reboot - ACS-00-VSRV17 - SQL Server</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">If you do not receive email - ask Barron for help</span></span><span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="EOP SCXO266637575 BCX0"> </span>

<span class="TextRun SCXO266637575 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO266637575 BCX0">ACS-00-VSRV16 - Labtech ID 683</span></span><span class="EOP SCXO266637575 BCX0"></span>

# DFS Checker client install and setup

<span class="EOP SCXO245416843 BCX0"> </span>

<span class="TextRun SCXO245416843 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO245416843 BCX0">From FTP download and install the latest version (1.1.5)</span></span><span class="EOP SCXO245416843 BCX0"> </span>

<span class="EOP SCXO245416843 BCX0"> </span>

<span class="TextRun SCXO245416843 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO245416843 BCX0">Install path should be C:\\Program Files (x86)\\Accent Consulting Services, LLC\\DFSCheckerClient\\</span></span><span class="EOP SCXO245416843 BCX0"> </span>

<span class="EOP SCXO245416843 BCX0"> </span>

<span class="TextRun SCXO245416843 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO245416843 BCX0">Create the </span></span>[<span class="TextRun SCXO245416843 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO245416843 BCX0">DFS Checker configuration settings</span></span>](http://bookstack.coltscomputer.services/books/windows/page/dfs-checker-configuration-settings)<span class="TextRun SCXO245416843 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO245416843 BCX0"> (config.txt) and place it in the same folder as the installed path. </span></span><span class="EOP SCXO245416843 BCX0"> </span>

<span class="EOP SCXO245416843 BCX0"> </span>

<span class="EOP SCXO245416843 BCX0"> </span>

<span class="EOP SCXO245416843 BCX0"></span>

# DFS Checker Configuration Settings

<span class="TextRun SCXO244126190 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO244126190 BCX0">Service Address: </span></span>[<span class="TextRun SCXO244126190 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO244126190 BCX0">https://secure.accentconsulting.com/AccentConsulting/DFSChecker/DFSService</span></span>](https://secure.accentconsulting.com/AccentConsulting/DFSChecker/DFSService)<span class="EOP SCXO244126190 BCX0"> </span>

<span class="TextRun SCXO244126190 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO244126190 BCX0">Password: wei01vsrv03DFS</span></span><span class="EOP SCXO244126190 BCX0"> </span>

<span class="TextRun SCXO244126190 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO244126190 BCX0">CheckScheduleFrequency: 3600</span></span><span class="EOP SCXO244126190 BCX0"> </span>

<span class="TextRun SCXO244126190 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO244126190 BCX0">Debug: 1</span></span><span class="EOP SCXO244126190 BCX0"></span>

# DFS Does not Replicate Temporary Files

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">This will remove the background temp archive attribute</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Get-childitem "</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">D:\\Data</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">" -recurse | ForEach-Object -process {if (($\_.attributes -band 0x100) -eq 0x100) {$\_.attributes = ($\_.attributes -band 0xFEFF)}}</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">There are some attributes that also will stop replication. Below command will remove those for whichever folder and subfolders you run this on.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">attrib \* -r -a /S /D</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">REED-01-SRV02</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Get-childitem I:\\DFS -recurse | ForEach-Object -process {if (($\_.attributes -band 0x100) -eq 0x100) {$\_.attributes = ($\_.attributes -band 0xFEFF)}}</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">RHSC-01-SRV01</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Get-childitem "D:\\NEW DFS" -recurse | ForEach-Object -process {if (($\_.attributes -band 0x100) -eq 0x100) {$\_.attributes = ($\_.attributes -band 0xFEFF)}}</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">RHSC-26-SRV03</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Get-childitem "D:\\WilliamsDFS" -recurse | ForEach-Object -process {if (($\_.attributes -band 0x100) -eq 0x100) {$\_.attributes = ($\_.attributes -band 0xFEFF)}}</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Script for task manager:</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">~~~~~~~~~~~~~~~~~~BAT file~~~~~~~~~~~~~~</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe C:\\Accent\\Scripts\\DFSR\_archive\_temp\_bit\_buster.ps1</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">~~~~~~~~~~~~~~~~~~~~~powershell ps1 file~~~~~~~~~~~~~~~~~~</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Get-childitem I:\\DFS -recurse | ForEach-Object -process {if (($\_.attributes -band 0x100) -eq 0x100) {$\_.attributes = ($\_.attributes -band 0xFEFF)}}</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun Highlight SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Windows Powershell </span></span><span class="TextRun Highlight SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">–</span></span><span class="TextRun Highlight SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> </span></span><span class="TextRun Highlight SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">“</span></span><span class="TextRun Highlight SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Running scripts is disabled on this system</span></span><span class="TextRun Highlight SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">”</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">set-executionpolicy remotesigned</span></span><span class="EOP SCXO210499755 BCX0"> </span>

[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">http://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/</span></span>](http://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/)<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">If you don’t want it to work against subdirectories just remove the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">-recurse</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> parameter.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">11 Nov 2008 7:40 AM </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<div class="OutlineElement Ltr SCXO210499755 BCX0" id="bkmrk-comments11%C2%A0">- <span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Comments</span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">11</span></span>](http://blogs.technet.com/b/askds/archive/2008/11/11/dfsr-does-not-replicate-temporary-files.aspx#comments)<span class="EOP SCXO210499755 BCX0"> </span>

</div><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Note that this post has been added to the </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">TechNet Wiki</span></span>](http://social.technet.microsoft.com/wiki/contents/articles/dfsr-does-not-replicate-temporary-files.aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> to allow for community editing.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">If you notice that DFS Replication (DFSR) is not replicating certain files, one simple reason is that the temporary attribute is set on them. By design, DFSR does not replicate files if they have the temporary attribute set on them, and it cannot be configured to do so.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">This may not be obvious because nearly all the normal methods you would use in Windows to check file attributes do not show the temporary attribute. Specifically, all of the following do </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">not</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> show the temporary attribute - </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Attrib.exe</span></span>](http://technet.microsoft.com/en-us/library/bb490868.aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, Explorer's file properties, </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FileSystemObject</span></span>](http://msdn.microsoft.com/en-us/library/5tx15443(VS.85).aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> in Windows Scripting Host, and </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">CIM\_Datafile</span></span>](http://msdn.microsoft.com/en-us/library/aa387236(VS.85).aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> in WMI. Also, DFSR does not log any errors to the event log or to the debug logs to show temporary files are not being replicated. There is a relevant entry in the debug logs, but it is not an error because this behavior is by design.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">The reason DFSR does not replicate files with the temporary attribute set is that they are considered short-lived files that you would never actually </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">want</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> to replicate. Using the temporary attribute on a file keeps that file in memory and saves on disk I/O. Therefore applications can use it on short-lived files to improve performance.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">An application can use </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FILE\_ATTRIBUTE\_TEMPORARY</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> when calling the </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">CreateFile</span></span>](http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> function if they want a temporary file. But an even better way is to also specify </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FILE\_FLAG\_DELETE\_ON\_CLOSE</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> so the temporary file is deleted when all handles are closed. That way you get the performance benefit of a temporary file (it’s kept in memory) and it is removed when handles are closed so administrators don’t come along and wonder why DFSR isn’t replicating it.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">If you have temporary files that you want DFSR to replicate, you may think it is enough to just remove the temporary attribute on those files and be on your way. And you can do that. But since you got in this situation once, it is likely you still have an application that will come right back and create more temporary files. So you need to get at the crux of the issue </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">–</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> why do you want to replicate files that an application is specifically creating to be temporary? Either the application must change its behavior, or you must except that temporary files won</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">’</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">t be replicated, because there is no way to make DFSR replicate files as long as the temporary attribute is set on them.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Checking the Temporary Attribute on a File using Fsutil</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">But wait, you say, maybe I don’t even know yet if these files that aren’t replicating are temporary! So let’s find out. As mentioned before, almost none of the ways to check attributes in Windows will actually show the temporary attribute. But there is one that does </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">–</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> the handy </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Fsutil</span></span>](http://technet.microsoft.com/en-us/library/cc753059.aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> tool that is included in Windows.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">fsutil usn readdata c:\\data\\test.txt</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Major Version : 0x2 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Minor Version : 0x0 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FileRef# : 0x0021000000002350 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Parent FileRef# : 0x0003000000005f5e </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Usn : 0x000000004d431000 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Time Stamp : 0x0000000000000000 12:00:00 AM 1/1/1601 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Reason : 0x0 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Source Info : 0x0 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Security Id : 0x5fb </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">File Attributes : 0x120</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">File Name Length : 0x10 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">File Name Offset : 0x3c </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FileName : test.txt</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">File Attributes</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> is a bitmask that indicates which attributes are set. In the above example, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x120</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> indicates the temporary attribute is set because that is </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x100</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> and </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x20</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> (Archive) = </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x120</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Here are the possible values: </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<div class="OutlineElement Ltr SCXO210499755 BCX0" id="bkmrk-readonly%C2%A0-0x1%C2%A0-hidde"><div class="TableContainer SCXO210499755 BCX0"><div aria-hidden="true" class="WACAltTextDescribedBy SCXO210499755 BCX0" id="bkmrk-"></div><table border="0" class="Table NoBorder SCXO210499755 BCX0"><tbody class="SCXO210499755 BCX0"><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">READONLY</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0" role="columnheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x1</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">HIDDEN </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x2</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">SYSTEM </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x4 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">DIRECTORY </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x10 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">ARCHIVE </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x20 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">DEVICE </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x40 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">NORMAL </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x80 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">TEMPORARY </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x100 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">SPARSE\_FILE</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x200 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">REPARSE\_POINT</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x400 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">COMPRESSED </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x800 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">OFFLINE </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x1000 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">NOT\_CONTENT\_INDEXED</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x2000 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr><tr class="TableRow SCXO210499755 BCX0" role="row"><td class="SCXO210499755 BCX0" role="rowheader"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">ENCRYPTED </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td><td class="SCXO210499755 BCX0"><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0x4000 </span></span><span class="EOP SCXO210499755 BCX0"> </span>

</td></tr></tbody></table>

</div></div><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">You combine the values to come up with the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">File Attributes</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> bitmask value. </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">If you need a sanity check:</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<div class="OutlineElement Ltr SCXO210499755 BCX0" id="bkmrk-start%2C%C2%A0run%2C%C2%A0calc.%C2%A0%C2%A0-">1. <span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Start</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Run</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Calc</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">. </span></span><span class="EOP SCXO210499755 BCX0"> </span>
2. <span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Change to </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Hex</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> and paste in the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">File Attributes</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> value from the Fsutil command. Say for example, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">4925</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">. </span></span><span class="EOP SCXO210499755 BCX0"> </span>
3. <span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Hit the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">And</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> button, then type </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">100</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">. </span></span><span class="EOP SCXO210499755 BCX0"> </span>
4. <span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Hit equals and if it returns </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">100</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, then the temporary attribute is set. If it returns </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">0</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, the temporary attribute is not set.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

</div><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Checking for Temporary Files in the Debug Logs with Findstr</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Another way to check if files are not replicating because they have the temporary attribute set is to use </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Findstr</span></span>](http://technet.microsoft.com/en-us/library/bb490907.aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> (included in Windows) to look for the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FILE\_ATTRIBUTE\_TEMPORARY</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> text string in the DFSR debug logs.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">First you need to extract out all of the debug logs, because all except the active log will be compressed, as indicated by a .GZ extension. The DFSR debug logs (</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Dfsr\*.log</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> and </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Dfsr\*.log.gz</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">) reside by default under </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">%windir%\\debug</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">. All the popular compression tools such as Winzip and Winrar can handle .GZ compression.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Let’s say you extracted the debug logs to </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">C:\\Logs</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">. You can then run the following </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Findstr</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> command to look for temporary files.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Findstr FILE\_ATTRIBUTE\_TEMPORARY c:\\logs\\dfsr\*.log</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">That will output the entire line for every line in the debug log that contains a match to that string. If it doesn't find any matches, it will return to a prompt and not show anything.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Sample output from a matching entry:</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">C:\\WINDOWS\\debug\\Dfsr00018.log:20080903 16:14:29.390 1808 USNC 1204 UsnConsumer::ProcessUsnRecord Skipping USN\_RECORD with FILE\_ATTRIBUTE\_TEMPORARY flag:</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">If it does find any matches, you can then open the specified log file, search on the string </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">FILE\_ATTRIBUTE\_TEMPORARY</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> (</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Ctrl+F</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> or </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Edit</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> | </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Find</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> in Notepad) and then you will see the actual file name for the file that was skipped because the temporary attribute is set on it.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Removing the Temporary Attribute from Multiple Files with Powershell</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">So you figured out that DFSR is not replicating some files because they have the temporary attribute set. There is no way to change this behavior in DFSR, so the only option is to live with it, or remove the temporary attribute from the files you want to replicate. An application in your environment has created these temporary files, so just treating the symptom isn’t enough, you need to find the application that creates them and either change its behavior, or accept that those files will not be replicated. </span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Since Attrib is not aware of the temporary attribute, we need to go to greater lengths to remove it. First you need to have Powershell installed on the machine - </span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">www.microsoft.com/powershell</span></span>](http://www.microsoft.com/powershell)<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Then bring up a Powershell prompt (</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Start</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Run</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Powershell</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> or from the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Programs</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> menu) and run this command to remove the temporary attribute from all files in the specified directory, including subdirectories (in this example, </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">D:\\Data</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">):</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Get-childitem D:\\Data -recurse | ForEach-Object -process {if (($\_.attributes -band 0x100) -eq 0x100) {$\_.attributes = ($\_.attributes -band 0xFEFF)}}</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">If you don’t want it to work against subdirectories just remove the </span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">-recurse</span></span><span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0"> parameter.</span></span><span class="EOP SCXO210499755 BCX0"> </span>

<span class="EOP SCXO210499755 BCX0"> </span>

<span class="TextRun SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">Pasted from &lt;</span></span>[<span class="TextRun SCXO210499755 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">http://blogs.technet.com/b/askds/archive/2008/11/11/dfsr-does-not-replicate-temporary-files.aspx</span></span>](http://blogs.technet.com/b/askds/archive/2008/11/11/dfsr-does-not-replicate-temporary-files.aspx)<span class="TextRun SCXO210499755 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO210499755 BCX0">&gt; </span></span><span class="EOP SCXO210499755 BCX0"></span>

# DFS Staging Size

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem 'F:\\SQL\_DFS' -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">The above command is originally from Microsoft</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">It checked the DFS folder "F:\\SQL\_DFS" for the largest 32 files and gives the result in GB.</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">Once you have that number change the staging on the folder to that size (listed in MB).</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">DFS will stop and work on staging if it gets to 90% of that number. Therefore</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">Multiply it by 1.12</span></span><span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0"> to get the size needed to keep that from happening.</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource='E:\\Shared'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource2='E:\\Data1'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource2 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource3='E:\\Procedures'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource4='E:\\Sales Information'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource5='E:\\SCC Reband'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource6='E:\\Shared'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource7='E:\\SQL Backup'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource8='E:\\Tech Information'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource9='E:\\Williams Documents-Accounting'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">$DFSSource0='E:\\Williams Mail List'</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource3 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource4 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource5 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource6 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource7 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource8 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource9 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="TextRun SCXO82257815 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO82257815 BCX0">(Get-ChildItem $DFSSource0 -recurse –force | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"> </span>

<span class="EOP SCXO82257815 BCX0"></span>

# DFSR Won't re-enable

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">There are times when DFS was used prior and it just won't work anymore. This has been seen in AD replication.</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="EOP SCXO186319230 BCX0"> </span>

<span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">The DB that DFS refers to is in </span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">C:\\System Volume Information\\DFSR</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">Within that folder is the DFS information. If that information is bad you have to purge it.</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">Remove the server from all DFSR</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">Update settings to allow you to see hidden system files</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">Take ownership of "System Volume Information"</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">Grant full access to folder and subfolders to yourself</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">CMD Elevated: rmdir "C:\\System Volume Information\\DFSR" /s</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">At this point all the DFSR information is gone but you messed with vital security permissions </span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">I am using: DISM.exe /Online /Cleanup-image /Restorehealth</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="TextRun SCXO186319230 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO186319230 BCX0">To hopefully get it back in-line</span></span><span class="EOP SCXO186319230 BCX0"> </span>

<span class="EOP SCXO186319230 BCX0"></span>

# WMI-DFS Staging Size

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">From command prompt, run these commands:</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">Connection Test</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrconnectioninfo where "LastSyncTime&lt;&gt;'99990101000000.000000-000' and state='3'" get membername, partnername, ReplicationGroupName, state</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">Replication Test</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrreplicatedfolderinfo where "state='5'" get membername, ReplicationGroupName, state</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">If the result is:</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">No Instances(s) Available.</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">Then all is good.</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">Without limitations, these commands will give the current connections and their states:</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">Connection Test</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrconnectioninfo get membername, partnername, ReplicationGroupName, state, LastSyncTime</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">Replication Test</span></span><span class="EOP SCXO29936441 BCX0"> </span>

<span class="TextRun SCXO29936441 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO29936441 BCX0">%systemroot%\\System32\\wbem\\WMIC.exe /namespace:\\\\root\\microsoftdfs path dfsrreplicatedfolderinfo get membername, ReplicationGroupName, state</span></span><span class="EOP SCXO29936441 BCX0"></span>

# How to troubleshoot missing SYSVOL and Netlogon shares

[https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-missing-sysvol-and-netlogon-shares](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-missing-sysvol-and-netlogon-shares)

This article provides the steps to troubleshoot the missing `SYSVOL` and `Netlogon` shares in Windows Server 2012 R2.

*Original KB number:* 2958414

## Symptoms

`SYSVOL` and `Netlogon` shares aren't shared on a domain controller. The following symptoms or conditions may also occur:

- The `sysvol` folder is empty.
- The affected domain controller was recently promoted.
- The environment contains domain controllers running versions of Windows earlier than Windows Server 2012 R2.
- DFS Replication is used to replicate the `SYSVOL` Share replicated folder.
- An upstream domain controller's DFS Replication service is in an error state.

## Cause

Domain controllers without `SYSVOL` shared can't replicate inbound because of upstream (source) domain controllers being in an error state. Frequently (but not limited to), the upstream servers have stopped replication because of a dirty shutdown (event ID 2213).

## Resolution

This section contains recommended methods for troubleshooting and resolving missing `SYSVOL` and `Netlogon` shares on domain controllers that replicate by using the DFS Replication service.

The process reinitializes DFS Replication if `SYSVOL` isn't shared on domain controllers according to [How to force an authoritative, or non-authoritative synchronization for DFSR-replicated SYSVOL (like "D4/D2" for FRS)](https://support.microsoft.com/help/2218556). It's unnecessary in most cases, and it may cause data loss if done incorrectly. In addition, it prevents determining the cause of the issue and averting future occurrences of the issue.

What follows are general steps to investigate the missing shares. Determine if the problem is caused by a one-time occurrence, or if the upstream domain controller(s) can't support replication by using DFS Replication.

Deleting the DFS Replication database from the volume shouldn't be required and is discouraged. It causes DFS Replication to consider all local data on the server to be nonauthoritative. By letting DFS Replication recover the database gracefully (as instructed in the 2213 event), the last writer will still win any conflicting versions of `SYSVOL` data.

### Step 1 - Evaluate the state of DFS Replication on all domain controllers

Evaluate how many domain controllers aren't sharing `SYSVOL`, have recently logged an Error event, and how many domain controllers are in an error state. Follow these steps.

- Check for the `SYSVOL` share
    
    You may manually check whether `SYSVOL` is shared or you can inspect each domain controller by using the net view command:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    For /f %i IN ('dsquery server -o rdn') do @echo %i && @(net view \\%i | find "SYSVOL") & echo
    
    ```
- Check DFS Replication state
    
    To check DFS Replication's state on domain controllers, you may query WMI. You can query all domain controllers in the domain for the `SYSVOL` Share replicated folder by using WMI as follows:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-1"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    For /f %i IN ('dsquery server -o rdn') do @echo %i && @wmic /node:"%i" /namespace:\\root\microsoftdfs path dfsrreplicatedfolderinfo WHERE replicatedfoldername='SYSVOL share' get replicationgroupname,replicatedfoldername,state
    
    ```
    
    The `state` values can be any of:  
    0 = Uninitialized  
    1 = Initialized  
    2 = Initial Sync  
    3 = Auto Recovery  
    4 = Normal  
    5 = In Error
    
     Note
    
    Depending on a domain controller's condition, it may fail to report a state value and indicate no instance(s) available.
- Check Event logs for recent errors or warnings
    
    If any domain controllers don't report the `SYSVOL` Share replicated folder as being in a state 4 (normal), check the event log of those domain controller(s) to evaluate their condition. Review each domain controller for recent errors or warnings in the DFS Replication event log, such as the warning event ID 2213 that indicates that DFS Replication is currently paused.
- Check the Content Freshness configuration
    
    Determine whether DFS Replication triggered content freshness protection on the affected domain controllers. Content Freshness is enabled on Windows Server 2012 (and later versions) domain controllers by default. However, it may also be manually enabled on Windows Server 2008 R2 servers.
    
    To evaluate if content freshness is enabled, the `MaxOfflineTimeInDays` setting will be set to **60**. If content freshness is disabled, `MaxOfflineTimeInDays` will be set to 0. To check `MaxOfflineTimeInDays`, run the following command:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-2"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    wmic.exe /node:%computername% /namespace:\\root\microsoftdfs path DfsrMachineConfig get MaxOfflineTimeInDays
    
    ```
    
    To query all domain controllers in the domain, run the following command:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-3"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    For /f %i IN ('dsquery server -o rdn') do @echo %i && @wmic /node:"%i" /namespace:\\root\microsoftdfs path DfsrMachineConfig get MaxOfflineTimeInDays
    
    ```
    
    For each domain controller enabled for content freshness, evaluate if DFS Replication has logged an event ID 4012 that indicates replication of the folder has stopped because replication has failed for longer than the `MaxOfflineTimeInDays` parameter.

### Step 2 - Prepare the domain controllers that are in an error state

- Install appropriate updates
    
    For any domain controllers running Windows Server 2008 R2, first install DFS Replication updates to prevent data loss and to fix known issues. It's a best practice to use the latest version of DFS Replication. See [List of currently available hotfixes for Distributed File System (DFS) technologies](https://support.microsoft.com/help/968429) for the latest version of DFS Replication.
- Back up `SYSVOL` data
    
    Do a backup of `SYSVOL` data (if present) on each domain controller. Backups may be a file copy of the `SYSVOL` contents to a safe location or, it may be a backup that uses backup software.
    
    Depending on the situation, policy files could be moved to **PreExisting** or **Conflict and Deleted**. **PreExisting** and **Conflict and Deleted** contents will be purged if initial synchronization is done multiple times on a server. Back up data in these locations to avoid data loss.

### Step 3 - Recover DFS Replication on the domain controllers in the error state

Based on the number of domain controllers in the domain, select the appropriate method to recover the DFS Replication service.

#### For environments that have two domain controllers

Determine whether a dirty shutdown was detected (event ID 2213) on either domain controller. You may find the second domain controller is waiting to complete initialization of `SYSVOL`. The reason is, after promotion, it will log a 4614 event that indicates that DFS Replication is waiting to do initial replication. In addition, it won't log a 4604 event signaling that DFS Replication has initialized `SYSVOL`.

- If content freshness is enabled on both domain controllers
    
    If the second domain controller waits to do initial synchronization (event 4614 logged without the 4604 anti-event), follow the [How to force an authoritative and non-authoritative synchronization for DFSR-replicated SYSVOL (like "D4/D2" for FRS)](https://support.microsoft.com/help/2218556) to set the first domain controller as authoritative. You don't have to configure the second domain controller as nonauthoritative, because it's already waiting to do initial synchronization.
    
    Or, if the second domain controller is healthy and `SYSVOL` is shared, take the following steps:
    
    
    1. Back up all `SYSVOL` contents of the first domain controller.
    2. Evaluate if the second domain controller's `SYSVOL` data is up to date. If not, you may want to copy updated `SYSVOL` files to the second domain controller from the first domain controller. Otherwise, any existing data present on first domain controller not present on the second will go into the **PreExisting** and **Conflict and Deleted** folders.
    3. Set the first domain controller as nonauthoritative by disabling the membership per [How to force an authoritative and non-authoritative synchronization for DFSR-replicated SYSVOL (like "D4/D2" for FRS)](https://support.microsoft.com/help/2218556). Confirm that an event ID 4114 is logged to indicate the membership is disabled.
    4. Enable the first domain controller's membership, and wait for the 4614 and 4604 events that report completion of the initial synchronization. If necessary, restore any updated files from PreExisting to the original location.
- If content freshness isn't enabled or triggered on both domain controllers
    
    If the first domain controller is in the event ID 2213 state, and the second domain controller has never completed initialization after it was promoted, and content freshness hasn't been triggered. Take the following steps:
    
    
    1. Run the `ResumeReplication` WMI method on the first domain controller as instructed in the 2213 event.
    2. After replication resumes, it will log an event ID 4602 that indicates that DFS Replication initialized the `SYSVOL` replicated folder and specified it as the primary member.
    3. Run the `dfsrdiag pollad` command on the second domain controller to trigger it to complete initial sync (event ID 4614). As soon as initial sync is finished, event ID 4604 is logged, signaling `SYSVOL` has completed initialization.
    
    Or, if the first domain controller is in the 2213 state and the second domain controller is healthy (`SYSVOL` is shared), run the `ResumeReplication` WMI method on the first domain controller. It will log event ID 2214 at the completion of dirty shutdown recovery.

#### For environments that have three or more domain controllers

Determine whether a dirty shutdown was detected and whether DFS Replication is paused on any domain controllers (event ID 2213). You may find a domain controller is waiting to complete initialization of `SYSVOL` after promotion. It will log a 4614 event that indicates that DFS Replication is waiting to do initial replication. It also won't log a 4604 event signaling that DFS Replication has initialized `SYSVOL`.

- If content freshness is enabled, and there are three or more domain controllers in the domain.
    
    Content freshness protection will log an event ID 4012 that indicates that replication has stopped because replication on the folder has failed for longer than the `MaxOfflineTimeInDays` parameter. To reinitialize DFS Replication on the affected domain controller(s), follow the instructions in [How to force an authoritative and non-authoritative synchronization for DFSR-replicated SYSVOL (like "D4/D2" for FRS)](https://support.microsoft.com/help/2218556).
    
    If all domain controllers have logged the 4012 event and their state is 5, follow the instructions in [How to force an authoritative and non-authoritative synchronization for DFSR-replicated SYSVOL (like "D4/D2" for FRS)](https://support.microsoft.com/help/2218556) to completely initialize `SYSVOL`. It's the only situation to set a DFS Replication server as authoritative. Make sure that the domain controller configured as authoritative has the most up-to-date copy of all `SYSVOL` contents.
    
    Or, if one or more domain controllers are blocking replication because of content freshness, they each must be non-authoritatively recovered. Follow these steps:
    
    
    1. Back up all `SYSVOL` contents of the domain controller(s). Typically, policy edits are done on the PDC Emulator, but it isn't guaranteed. Any data present on the recovered domain controller(s) not matching the partners will go into the **PreExisting** or **Conflict and Deleted** folder, or both.
    2. Set the domain controller(s) as nonauthoritative by disabling the membership, as described in [How to force an authoritative and non-authoritative synchronization for DFSR-replicated `SYSVOL` (like "D4/D2" for FRS)](https://support.microsoft.com/help/2218556). You must be aware of the replication topology, and you must fan out from a healthy domain controller by selecting direct partners of it, then recovering further downstream domain controllers, and so on. Event ID 4144 will be logged to confirm the membership is disabled. Make sure all domain controllers requiring recovery log the event. It may be necessary to force Active Directory replication and then run the `dfsrdiag pollad` command on each domain controller to detect the disabled membership quickly.
    3. Enable the membership and wait for the 4614 and 4604 events to report completion of the initial synchronization. Restore any required files from backup or from **PreExisting** and **Conflict and Deleted** as necessary.
- If content freshness isn't enabled or triggered, and there are three or more domain controllers in the domain
    
    If content freshness protection isn't triggered, run the `ResumeReplication` WMI method on the affected domain controllers. You must be aware of the replication topology, and you must fan out from a healthy domain controller by selecting direct partners of it, then recovering further downstream domain controllers, and so on. After replication is resumed, DFS Replication will log events 2212, 2218, and then 2214 (indicating that DFS Replication initialized the `SYSVOL` replicated folder).

### Preventing future occurrences of the issue

Check whether the Application and System event logs are frequently reporting ESENT database recovery operations, disk performance problems, or both. The event logs typically coincide with unexpected shutdowns of the system, with DFS Replication not stopping gracefully, or disk subsystem failures. Consider updating the system's drivers, installing appropriate updates to the disk subsystem, or contacting the system's hardware manufacturer to investigate further. You may also contact Microsoft Customer Support Services to help evaluate the system's health and DFS Replication behavior.

The Service Control Manager (SCM) uses the default time-out time of 20 seconds for stopping a service. In some complex DFS Replication implementations, this time-out value may be too short, and DFS Replication stops before the appropriate database is closed. At service restart, DFS Replication detects this condition, and then does the database recovery. WaitToKillServiceTimeout may be used to grant DFS Replication more time to commit changes to the database during shutdown. For more information, go to article [You receive DFSR event ID 2212 after you restart the DFSR service](https://support.microsoft.com/help/977518).

After you have restored DFS Replication of `SYSVOL`, DFS Replication health must be carefully monitored in the environment to prevent this scenario. Regular review of DFS Replication event logs, collecting of DFS Replication health reports, and collecting of replication state (by using the WMI query in the Check DFS Replication state section under [Step 1 - Evaluate the state of DFS Replication on all domain controllers](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-missing-sysvol-and-netlogon-shares#step-1---evaluate-the-state-of-dfs-replication-on-all-domain-controllers)) are recommended.

# How to force authoritative and non-authoritative synchronization for DFSR-replicated sysvol replication

[https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/force-authoritative-non-authoritative-synchronization#how-to-perform-an-authoritative-synchronization-of-dfsr-replicated-sysvol-replication-like-d4-for-frs](https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/force-authoritative-non-authoritative-synchronization#how-to-perform-an-authoritative-synchronization-of-dfsr-replicated-sysvol-replication-like-d4-for-frs)

## Summary

Consider the following scenario:

You want to force the non-authoritative synchronization of sysvol replication on a domain controller (DC). In the File Replication Service (FRS), it was controlled through the **D2** and **D4** data values for the `Bur Flags` registry values, but these values don't exist for the Distributed File System Replication (DFSR) service. You can't use the DFS Management snap-in (Dfsmgmt.msc) or the Dfsradmin.exe command-line tool to achieve this. Unlike custom DFSR replicated folders, sysvol replication is intentionally protected from any editing through its management interfaces to prevent accidents.

## How to perform a non-authoritative synchronization of DFSR-replicated sysvol replication (like D2 for FRS)

1. In the ADSIEDIT.MSC tool, modify the following distinguished name (DN) value and attribute on each of the domain controllers (DCs) that you want to make non-authoritative:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=<the server name>,OU=Domain Controllers,DC=<domain>
    
    msDFSR-Enabled=FALSE
    
    ```
2. Force Active Directory replication throughout the domain.
3. Run the following command from an elevated command prompt on the same servers that you set as non-authoritative:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-1"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    DFSRDIAG POLLAD
    
    ```
4. You'll see Event ID 4114 in the DFSR event log indicating sysvol replication is no longer being replicated.
5. On the same DN from Step 1, set **msDFSR-Enabled=TRUE**.
6. Force Active Directory replication throughout the domain.
7. Run the following command from an elevated command prompt on the same servers that you set as non-authoritative:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-2"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    DFSRDIAG POLLAD
    
    ```
8. You'll see Event ID 4614 and 4604 in the DFSR event log indicating sysvol replication has been initialized. That domain controller has now done a **D2** of sysvol replication.

## How to perform an authoritative synchronization of DFSR-replicated sysvol replication (like D4 for FRS)

1. Set the DFS Replication service Startup Type to Manual, and stop the service on all domain controllers in the domain.
2. In the ADSIEDIT.MSC tool, modify the following DN and two attributes on the domain controller you want to make authoritative (preferably the PDC Emulator, which is usually the most up-to-date for sysvol replication contents):
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-3"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=<the server name>,OU=Domain Controllers,DC=<domain>
    
    msDFSR-Enabled=FALSE
    msDFSR-options=1
    
    ```
3. Modify the following DN and single attribute on **all** other domain controllers in that domain:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-4"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=<each other server name>,OU=Domain Controllers,DC=<domain>
    
    msDFSR-Enabled=FALSE
    
    ```
4. Force Active Directory replication throughout the domain and validate its success on all DCs.
5. Start the DFSR service on the domain controller that was set as authoritative in Step 2.
6. You'll see Event ID 4114 in the DFSR event log indicating sysvol replication is no longer being replicated.
7. On the same DN from Step 2, set **msDFSR-Enabled=TRUE**.
8. Force Active Directory replication throughout the domain and validate its success on all DCs.
9. Run the following command from an elevated command prompt on the same server that you set as authoritative:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-5"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    DFSRDIAG POLLAD
    
    ```
10. You'll see Event ID 4602 in the DFSR event log indicating sysvol replication has been initialized. That domain controller has now done a **D4** of sysvol replication.
11. Start the DFSR service on the other non-authoritative DCs. You'll see Event ID 4114 in the DFSR event log indicating sysvol replication is no longer being replicated on each of them.
12. Modify the following DN and single attribute on **all** other domain controllers in that domain:
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-6"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=<each other server name>,OU=Domain Controllers,DC=<domain>
    
    msDFSR-Enabled=TRUE
    
    ```
13. Run the following command from an elevated command prompt on all non-authoritative DCs (that is, all but the formerly authoritative one):
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-consolecopy-7"><span class="language">Console</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    DFSRDIAG POLLAD
    
    ```
14. Return the DFSR service to its original Startup Type (Automatic) on all DCs.

## More information

If setting the authoritative flag on one DC, you must non-authoritatively synchronize all other DCs in the domain. Otherwise you'll see conflicts on DCs, originating from any DCs where you did not set auth/non-auth and restarted the DFSR service. For example, if all logon scripts were accidentally deleted and a manual copy of them was placed back on the PDC Emulator role holder, making that server authoritative and all other servers non-authoritative would guarantee success and prevent conflicts.

If making any DC authoritative, the PDC Emulator as authoritative is preferable, since its sysvol replication contents are most up to date.

The use of the authoritative flag is only necessary if you need to force synchronization of all DCs. If only repairing one DC, make it non-authoritative and don't touch other servers.

This article is designed with a 2-DC environment in mind, for simplicity of description. If you had more than one affected DC, expand the steps to include ALL of them as well. It also assumes you have the ability to restore data that was deleted, overwritten, damaged, and so on. previously if it's a disaster recovery scenario on all DCs in the domain.