SOLVED

DFS replication issues

%3CLINGO-SUB%20id%3D%22lingo-sub-3285378%22%20slang%3D%22en-US%22%3EDFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285378%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20running%20Windows%20Server%202016%20as%20a%20Primary%20Domain%20Controller.%20We%20don't%20have%20DFS%20management%20tool%20installed%20however%20I'm%20getting%206002%20errors%20in%20event%20viewer.%20Please%20advise%20on%20how%20to%20investigate%20further.%20Object%20CN%20could%20not%20be%20found%20from%20ADSI%20edit%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22nikitamobile855_0-1649916245603.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F364072i43C13F7130E2BDDC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22nikitamobile855_0-1649916245603.png%22%20alt%3D%22nikitamobile855_0-1649916245603.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22nikitamobile855_0-1649916098036.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F364071i6B7A5E2A47B3C208%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22nikitamobile855_0-1649916098036.png%22%20alt%3D%22nikitamobile855_0-1649916098036.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3285378%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActive%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289937%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289937%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20looks%20a%20lot%20healthier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20should%20find%20your%20DFS-R%20errors%20stop%20soon.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20probably%20focus%20on%20your%20other%20thread%20(the%20%22gpt.ini%22%20error)%20now%20as%20this%20one%20should%20be%20resolved.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289931%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289931%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314983%22%20target%3D%22_blank%22%3E%40LainRobertson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20launched%20the%20commands%20to%20remove%20broken%20references%20and%20here%20is%20the%20the%20JSON%20outcome%20afterwards.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EWARNING%3A%20Enumerating%20domain%20controller%20SYSVOL%20DFS-R%20memberships%3A%0AWARNING%3A%20Enumerating%20DFS-R%20replication%20group%20topologies%3A%0AWARNING%3A%20Enumerating%20DFS-N%20namespaces%3A%0A%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2243d626f7-7496-496a-8cf1-fefa0467c173%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Subscriber%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22Domain%20System%20Volume%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CD%0AC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MemberReference%22%3A%20%20%22CN%3DUZTASSRV01%2CCN%3DTopology%2CCN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%0A%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2243d626f7-7496-496a-8cf1-fefa0467c173%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Subscription%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22Domain%20System%20Volume%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CD%0AC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%223a3d05c2-7738-4b40-b14c-03af84841594%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-ReplicationGroup%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22Domain%20System%20Volume%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2288883960-839e-40b5-962c-f3020f49250d%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22UZTASSRV01%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DUZTASSRV01%2CCN%3DTopology%2CCN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2C%0ADC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22CN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dloc%0Aal%22%0A%20%20%20%20%7D%0A%5D%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289920%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289920%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20respect%20to%20UZTASSVR02%2C%20it%20looks%20like%20the%20demotion%20didn't%20work%20cleanly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20isn't%20uncommon%20and%20normally%20you%20can%20run%20a%20process%20commonly%20called%20the%20%22metadata%20cleanup%22%20process%20to%20remove%20these%20kinds%20of%20orphaned%20references%2C%20such%20as%20you%20have%20in%20your%20Domain%20System%20Volume%20DFS-R%20set.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20because%20there%20are%20more%20issues%20than%20just%20the%20orphaned%20reference%20to%20UZTASSVR02%20(such%20as%20those%20relating%20to%20the%20DFS%20and%20DFS_IT%20replication%20groups)%2C%20it%20was%20easier%20just%20to%20deal%20with%20everything%20in%20one%20reply%20rather%20than%20handling%20the%20DFS%2C%20DFS_IT%20and%20Domain%20System%20Volume%20replication%20groups%20separately.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289916%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289916%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%2C%20not%20at%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELines%201%20to%204%20have%20nothing%20to%20do%20with%20the%20SYSVOL%20(which%20in%20turn%20relates%20to%20GPO%20and%20all%20that%20stuff).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELine%205%20does%20relate%20to%20SYSVOL%20but%20only%20in%20the%20context%20that%20it's%20removing%20the%20now-orphaned%20reference%20to%20the%20domain%20controller%20UZTASSVR02%20which%20no%20longer%20exists.%20In%20other%20words%2C%20it's%20fixing%20the%20SYSVOL%20replication%20group%20by%20removing%20the%20reference%20to%20UZTASSVR02.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289911%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289911%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314983%22%20target%3D%22_blank%22%3E%40LainRobertson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20for%20your%20effort%20and%20this%20very%20detailed%20answer.%20I'm%20going%20to%20try%20according%20to%20your%20proposal.%20Just%20wanted%20to%20clarify%20whether%20removal%20of%20those%20DSF%20references%20shouldn't%20anyhow%20impact%20existing%20DC%2C%20AD%2C%20GPO%20functionality%20currently%20running%20on%20uztassrv01%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289878%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289878%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%20Nikita.%20That%20helped%20a%20great%20deal%20and%20saved%20a%20lot%20of%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20start%20at%20the%20end%20and%20work%20backwards.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20want%20to%20run%20these%20commands%20to%20clean%20up%20what%20is%20a%20very%20broken%20DFS-R%20configuration.%20I'll%20provide%20an%20in-depth%20explanation%20after%20the%20commands%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ERemove-ADObject%20-Identity%20%22CN%3D45d9316b-1098-408e-a65d-8ce8449f0aaa%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dlocal%22%20-Recursive%20-Confirm%3A%24false%3B%0ARemove-ADObject%20-Identity%20%22CN%3Da7297769-fdcd-4490-ae1c-c80808f44d36%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dlocal%22%20-Recursive%20-Confirm%3A%24false%3B%0ARemove-ADObject%20-Identity%20%22CN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%20-Recursive%20-Confirm%3A%24false%3B%0ARemove-ADObject%20-Identity%20%22CN%3DDFS_IT%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%20-Recursive%20-Confirm%3A%24false%3B%0ARemove-ADObject%20-Identity%20%22CN%3DUZTASSVR02%2CCN%3DTopology%2CCN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%20-Recursive%20-Confirm%3A%24false%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EOverview%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWhat%20the%20JSON%20output%20you%20provided%20showed%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EThere%20are%20no%20DFS%20namespaces%20configured%3B%3C%2FLI%3E%3CLI%3EThe%20DFS%20replication%20group%20definitions%20are%20badly%20broken%20in%20places%3B%3C%2FLI%3E%3CLI%3EThe%20%22built-in%22%20SYSVOL%20DFS-R%20definition%20is%20fine%20but%20contains%20an%20orphaned%20reference%20to%20a%20domain%20controller%20no%20longer%20in%20existence%20(UZTASSVR02)%3B%3C%2FLI%3E%3CLI%3EThree%20DFS%20replications%20groups%20are%20defined%3A%3COL%3E%3CLI%3EDFS%3B%3C%2FLI%3E%3CLI%3EDFS_IT%3B%3C%2FLI%3E%3CLI%3EDomain%20System%20Volume.%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EApproach%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThere%20were%20two%20options%20I%20could%20have%20pursued%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EAdd%20the%20missing%20%22MemberReference%22%20values%20onto%20the%20existing%20%22msDFSR-Subscriber%22%20objects%3B%20or%3C%2FLI%3E%3CLI%3EDelete%20the%20DFS%20and%20DFS_IT%20DFS%20replication%20groups.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20chosen%20option%202%20since%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EThere%20is%20no%20associated%20DFS%20namespace%3B%3C%2FLI%3E%3CLI%3EThe%20replication%20groups%20would%20only%20have%20a%20single%20member%2C%20which%20is%20pointless%3B%3C%2FLI%3E%3CLI%3EIt%20provides%20you%20with%20the%20cleanest%20outcome%2C%20since%20you%20can%20always%20create%20new%20DFS%20namespaces%20and%20replication%20groups%20if%20you%20decide%20to%20later%20on%2C%20and%20you%20won't%20have%20to%20worry%20about%20old%2C%20corrupt%20data%20lingering%20around.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EExplanation%20of%20each%20command%3C%2FSTRONG%3E%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3ELine%3C%2FTD%3E%3CTD%20width%3D%22*%22%3EComment%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3ERemoves%20the%20orphaned%20subscription%20to%20the%20%22DFS%22%20replication%20group%20from%20UZTASSRV01.%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E2%3C%2FTD%3E%3CTD%3ERemoves%20the%20orphaned%20subscription%20to%20the%20%22DFS_IT%22%20replication%20group%20from%20UZTASSRV01.%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E3%3C%2FTD%3E%3CTD%3ERemoves%20the%20%22DFS%22%20replication%20group.%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E4%3C%2FTD%3E%3CTD%3ERemoves%20the%20%22DFS_IT%22%20replication%20group.%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E5%3C%2FTD%3E%3CTD%3ERemoves%20the%20orphaned%20UZTASSVR02%20reference%20from%20the%20%22Domain%20System%20Volume%22%20replication%20group.%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20you%20have%20removed%20these%20objects%2C%20it%20will%20take%20DFS-R%20a%20little%20while%20to%20recognise%20the%20changes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20want%20to%20hurry%20the%20process%20up%2C%20you%20can%20do%20any%20one%20of%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ERestart%26nbsp%3BUZTASSRV01%20(since%20it's%20the%20only%20remaining%20host)%3B%20or%3C%2FLI%3E%3CLI%3ERestart%20the%20the%20%22DFSR%22%20service%20on%26nbsp%3BUZTASSRV01%3B%20or%3C%2FLI%3E%3CLI%3ERun%20the%20following%20command%20on%26nbsp%3BUZTASSRV01%20(it%20may%20not%20be%20installed%20though%2C%20which%20is%20fine)%3A%3C%2FLI%3E%3C%2FOL%3E%3CPRE%20class%3D%22lia-code-sample%20language-markdown%22%3E%3CCODE%3Edfsdiag%20pollad%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyhow%2C%20once%20you've%20either%20waited%20a%20bit%20or%20hurried%20things%20up%2C%20you%20should%20find%20the%20Event%20Viewer%20errors%20stop.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289828%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289828%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314983%22%20target%3D%22_blank%22%3E%40LainRobertson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20morning!%20Please%20see%20the%20script%20outcome%20below%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EWARNING%3A%20Enumerating%20domain%20controller%20SYSVOL%20DFS-R%20memberships%3A%0AWARNING%3A%20Enumerating%20DFS-R%20replication%20group%20topologies%3A%0AWARNING%3A%20Enumerating%20DFS-N%20namespaces%3A%0A%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Unhealthy%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%224510c737-8c38-495d-aa7b-e1f3ce92fa3b%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Subscriber%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%2245d9316b-1098-408e-a65d-8ce8449f0aaa%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3D45d9316b-1098-408e-a65d-8ce8449f0aaa%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Con%0Atrollers%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MemberReference%22%3A%20%20%22%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Unhealthy%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%22ea36c86a-ab6b-4648-ad76-16c5f2a21b32%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Subscriber%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22a7297769-fdcd-4490-ae1c-c80808f44d36%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3Da7297769-fdcd-4490-ae1c-c80808f44d36%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Con%0Atrollers%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MemberReference%22%3A%20%20%22%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2243d626f7-7496-496a-8cf1-fefa0467c173%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Subscriber%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22Domain%20System%20Volume%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CD%0AC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MemberReference%22%3A%20%20%22CN%3DUZTASSRV01%2CCN%3DTopology%2CCN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%0A%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2243d626f7-7496-496a-8cf1-fefa0467c173%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Subscription%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22Domain%20System%20Volume%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CD%0AC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%223d74223e-5f1f-40c2-bf42-3255fd57227e%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-ReplicationGroup%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22DFS%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%22331bda39-781e-4bb9-ab31-b8432cc2f5ce%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%2245d9316b-1098-408e-a65d-8ce8449f0aaa%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3D45d9316b-1098-408e-a65d-8ce8449f0aaa%2CCN%3DTopology%2CCN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSyst%0Aem%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22CN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22CN%3D45d9316b-1098-408e-a65d-8ce8449f0aaa%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controll%0Aers%2CDC%3Dsm%2CDC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Unhealthy%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2266a0d320-8b34-4f9e-8dd1-3a93c5c4b7a1%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22c3b24e94-239f-4621-b82b-b356d6cc9bed%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3Dc3b24e94-239f-4621-b82b-b356d6cc9bed%2CCN%3DTopology%2CCN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSyst%0Aem%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%22cbc3347c-ee38-4d15-9737-34a0b9cafa84%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-ReplicationGroup%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22DFS_IT%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDFS_IT%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Unhealthy%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%22837b0736-bf19-41ff-a3bd-29c43c0c8c49%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%226819feb2-58e2-4400-a2b0-db0a3c442183%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3D6819feb2-58e2-4400-a2b0-db0a3c442183%2CCN%3DTopology%2CCN%3DDFS_IT%2CCN%3DDFSR-GlobalSettings%2CCN%3DS%0Aystem%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%22fbeded44-7272-44d8-bea3-f2e700d68d3f%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22a7297769-fdcd-4490-ae1c-c80808f44d36%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3Da7297769-fdcd-4490-ae1c-c80808f44d36%2CCN%3DTopology%2CCN%3DDFS_IT%2CCN%3DDFSR-GlobalSettings%2CCN%3DS%0Aystem%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22CN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22CN%3Da7297769-fdcd-4490-ae1c-c80808f44d36%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controll%0Aers%2CDC%3Dsm%2CDC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%223a3d05c2-7738-4b40-b14c-03af84841594%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-ReplicationGroup%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22Domain%20System%20Volume%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Okay%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%2288883960-839e-40b5-962c-f3020f49250d%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22UZTASSRV01%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DUZTASSRV01%2CCN%3DTopology%2CCN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2C%0ADC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22CN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22CN%3DDomain%20System%20Volume%2CCN%3DDFSR-LocalSettings%2CCN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2CDC%3Dsm%2CDC%3Dloc%0Aal%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22Status%22%3A%20%20%22Unhealthy%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectGUID%22%3A%20%20%225eb07891-a762-4aab-a04d-9ddefd9c318f%22%2C%0A%20%20%20%20%20%20%20%20%22ObjectClass%22%3A%20%20%22msDFSR-Member%22%2C%0A%20%20%20%20%20%20%20%20%22Name%22%3A%20%20%22UZTASSVR02%22%2C%0A%20%20%20%20%20%20%20%20%22DistinguishedName%22%3A%20%20%22CN%3DUZTASSVR02%2CCN%3DTopology%2CCN%3DDomain%20System%20Volume%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2C%0ADC%3Dlocal%22%2C%0A%20%20%20%20%20%20%20%20%22ComputerReference%22%3A%20%20%22%22%2C%0A%20%20%20%20%20%20%20%20%22MembershipBL%22%3A%20%20%22%22%0A%20%20%20%20%7D%0A%5D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3289437%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289437%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20can't%20see%20it%20then%20the%20error%20doesn't%20make%20any%20sense%2C%20either.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERather%20than%20trying%20to%20work%20through%20checking%20each%20object%20individually%2C%20I've%20written%20a%20quick%20script%20(inserted%20at%20the%20bottom%20of%20this%20post)%20to%20pull%20some%20of%20the%20DFS%20(-N%20and%20-R)%20configuration%20information%20from%20Active%20Directory.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20can%20save%20it%20as%20%22Get-DfsConfiguration.ps1%22%2C%20then%20run%20it%20as%20shown%20below%20and%20upload%20the%20JSON%2C%20that%20would%20help%20with%20the%20cross-referencing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20direct-message%20me%20the%20results%20if%20you'd%20prefer%20not%20to%20post%20them%20here%2C%20but%20there's%20nothing%20confidential%20about%20it%2C%20meaning%20others%20here%20may%20be%20able%20to%20offer%20insight%20if%20you%20choose%20to%20paste%20the%20results%20in%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E.%5CGet-DfsConfiguration.ps1%20%7C%20ConvertTo-Json%20-Depth%203%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20script%20throws%20an%20error%2C%20let%20me%20know%20and%20I'll%20fix%20it%20as%20I%20didn't%20spend%20much%20time%20quality%20assuring%20it.%20But%20if%20it%20behaves%2C%20the%20output%20will%20help%20with%20both%20of%20your%20TechCommunity%20threads.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20does%20not%20need%20any%20special%20rights%20and%20can%20(and%20should)%20be%20run%20as%20a%20normal%2C%20unprivileged%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20can%20you%20check%20that%20the%20DFS%20service%20is%20running%20on%20your%20domain%20controller%3F%20(i.e.%20%22Get-Service%20-Name%20Dfs%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%5Bcmdletbinding()%5D%0AParam()%0A%0A%23region%20Class%20definitions.%0Aclass%20DfsrSubscriber%0A%7B%0A%20%20%20%20%5Bstring%5D%20%24Status%3B%0A%20%20%20%20%5Bguid%5D%20%24ObjectGUID%3B%0A%20%20%20%20%5Bstring%5D%20%24ObjectClass%3B%0A%20%20%20%20%5Bstring%5D%20%24Name%3B%0A%20%20%20%20%5Bstring%5D%20%24DistinguishedName%3B%0A%20%20%20%20%5Bstring%5D%20%24MemberReference%3B%0A%0A%20%20%20%20DfsrSubscriber(%5Bguid%5D%20%24ObjectGUID%2C%20%5Bstring%5D%20%24Name%2C%20%5Bstring%5D%20%24DistinguishedName%2C%20%5BSystem.DirectoryServices.PropertyValueCollection%5D%20%24MemberReference)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24this.ObjectGUID%20%3D%20%24ObjectGUID%3B%0A%20%20%20%20%20%20%20%20%24this.ObjectClass%20%3D%20%22msDFSR-Subscriber%22%3B%0A%20%20%20%20%20%20%20%20%24this.Name%20%3D%20%24Name%3B%0A%20%20%20%20%20%20%20%20%24this.DistinguishedName%20%3D%20%24DistinguishedName%3B%0A%20%20%20%20%20%20%20%20if%20((%24MemberReference.Count%20-gt%200)%20-and%20(%5Badsi%5D%3A%3AExists(%22%24(%24Script%3AAdsPrefix)%2FCN%3DSYSVOL%20Subscription%2C%24DistinguishedName%22)))%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Okay%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.MemberReference%20%3D%20%24MemberReference%5B0%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20else%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Unhealthy%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.MemberReference%20%3D%20%24null%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%0Aclass%20DfsrSubscription%0A%7B%0A%20%20%20%20%5Bstring%5D%20%24Status%3B%0A%20%20%20%20%5Bguid%5D%20%24ObjectGUID%3B%0A%20%20%20%20%5Bstring%5D%20%24ObjectClass%3B%0A%20%20%20%20%5Bstring%5D%20%24Name%3B%0A%20%20%20%20%5Bstring%5D%20%24DistinguishedName%3B%0A%0A%20%20%20%20DfsrSubscription(%5Bguid%5D%20%24ObjectGUID%2C%20%5Bstring%5D%20%24Name%2C%20%5Bstring%5D%20%24DistinguishedName)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Okay%22%3B%0A%20%20%20%20%20%20%20%20%24this.ObjectGUID%20%3D%20%24ObjectGUID%3B%0A%20%20%20%20%20%20%20%20%24this.ObjectClass%20%3D%20%22msDFSR-Subscription%22%3B%0A%20%20%20%20%20%20%20%20%24this.Name%20%3D%20%24Name%3B%0A%20%20%20%20%20%20%20%20%24this.DistinguishedName%20%3D%20%24DistinguishedName%3B%0A%20%20%20%20%7D%0A%7D%0A%0Aclass%20DfsrReplicationGroup%0A%7B%0A%20%20%20%20%5Bstring%5D%20%24Status%3B%0A%20%20%20%20%5Bguid%5D%20%24ObjectGUID%3B%0A%20%20%20%20%5Bstring%5D%20%24ObjectClass%3B%0A%20%20%20%20%5Bstring%5D%20%24Name%3B%0A%20%20%20%20%5Bstring%5D%20%24DistinguishedName%3B%0A%0A%20%20%20%20DfsrReplicationGroup(%5Bguid%5D%20%24ObjectGUID%2C%20%5Bstring%5D%20%24Name%2C%20%5Bstring%5D%20%24DistinguishedName)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24this.ObjectGUID%20%3D%20%24ObjectGUID%3B%0A%20%20%20%20%20%20%20%20%24this.ObjectClass%20%3D%20%22msDFSR-ReplicationGroup%22%3B%0A%20%20%20%20%20%20%20%20%24this.Name%20%3D%20%24Name%3B%0A%20%20%20%20%20%20%20%20%24this.DistinguishedName%20%3D%20%24DistinguishedName%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20if%20(%5Badsi%5D%3A%3AExists(%22%24(%24Script%3AAdsPrefix)%2FCN%3DTopology%2C%24DistinguishedName%22))%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Okay%22%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20else%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Unhealthy%22%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%0Aclass%20DfsrMember%0A%7B%0A%20%20%20%20%5Bstring%5D%20%24Status%3B%0A%20%20%20%20%5Bguid%5D%20%24ObjectGUID%3B%0A%20%20%20%20%5Bstring%5D%20%24ObjectClass%3B%0A%20%20%20%20%5Bstring%5D%20%24Name%3B%0A%20%20%20%20%5Bstring%5D%20%24DistinguishedName%3B%0A%20%20%20%20%5Bstring%5D%20%24ComputerReference%3B%0A%20%20%20%20%5Bstring%5D%20%24MembershipBL%3B%0A%0A%20%20%20%20DfsrMember(%5Bguid%5D%20%24ObjectGUID%2C%20%5Bstring%5D%20%24Name%2C%20%5Bstring%5D%20%24DistinguishedName%2C%20%5BSystem.DirectoryServices.PropertyValueCollection%5D%20%24ComputerReference%2C%20%5BSystem.DirectoryServices.PropertyValueCollection%5D%20%24MembershipBL)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24this.ObjectGUID%20%3D%20%24ObjectGUID%3B%0A%20%20%20%20%20%20%20%20%24this.ObjectClass%20%3D%20%22msDFSR-Member%22%3B%0A%20%20%20%20%20%20%20%20%24this.Name%20%3D%20%24Name%3B%0A%20%20%20%20%20%20%20%20%24this.DistinguishedName%20%3D%20%24DistinguishedName%3B%0A%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Okay%22%3B%0A%20%20%20%20%20%20%20%20%24this.MembershipBL%20%3D%20%24MembershipBL%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20if%20(%24ComputerReference.Count%20-gt%200)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.ComputerReference%20%3D%20%24ComputerReference%5B0%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20else%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Unhealthy%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.ComputerReference%20%3D%20%24null%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20if%20(%24MembershipBL.Count%20-gt%200)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.MembershipBL%20%3D%20%24MembershipBL%5B0%5D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20else%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Unhealthy%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.MembershipBL%20%3D%20%24null%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%0Aclass%20DfsNamespaceV2%0A%7B%0A%20%20%20%20%5Bstring%5D%20%24Status%3B%0A%20%20%20%20%5Bguid%5D%20%24ObjectGUID%3B%0A%20%20%20%20%5Bstring%5D%20%24ObjectClass%3B%0A%20%20%20%20%5Bstring%5D%20%24Name%3B%0A%20%20%20%20%5Bstring%5D%20%24DistinguishedName%3B%0A%20%20%20%20%5BSystem.Collections.Generic.List%5BDfsNamespaceV2Target%5D%5D%20%24Targets%3B%0A%0A%20%20%20%20DfsNamespaceV2(%5Bguid%5D%20%24ObjectGUID%2C%20%5Bstring%5D%20%24Name%2C%20%5Bstring%5D%20%24DistinguishedName%2C%20%5BSystem.DirectoryServices.PropertyValueCollection%5D%20%24Targets)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24this.ObjectGUID%20%3D%20%24ObjectGUID%3B%0A%20%20%20%20%20%20%20%20%24this.ObjectClass%20%3D%20%22msDFS-Namespacev2%22%3B%0A%20%20%20%20%20%20%20%20%24this.Name%20%3D%20%24Name%3B%0A%20%20%20%20%20%20%20%20%24this.DistinguishedName%20%3D%20%24DistinguishedName%3B%0A%20%20%20%20%20%20%20%20%24this.Targets%20%3D%20Get-DfsV2Target%20-TargetListV2%20%24Targets%3B%0A%0A%20%20%20%20%20%20%20%20if%20(%24this.Targets.Count%20-gt%200)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Okay%22%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20else%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24this.Status%20%3D%20%22Unhealthy%22%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%0Aclass%20DfsNamespaceV2Target%0A%7B%0A%20%20%20%20%5Bbool%5D%20%24Online%3B%0A%20%20%20%20%5Bstring%5D%20%24Target%3B%0A%0A%20%20%20%20DfsNamespaceV2Target(%5Bstring%5D%20%24Status%2C%20%5Bstring%5D%20%24Target)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24this.Online%20%3D%20%24Status%20-eq%20%22online%22%3B%0A%20%20%20%20%20%20%20%20%24this.Target%20%3D%20%24Target%3B%0A%20%20%20%20%7D%0A%7D%0A%23endregion%0A%0A%23region%20Function%20definitions.%0Afunction%20Get-DfsV2Target(%5BSystem.DirectoryServices.PropertyValueCollection%5D%20%24TargetListV2)%0A%7B%0A%20%20%20%20%24Targets%20%3D%20%5BSystem.Collections.Generic.List%5BDfsNamespaceV2Target%5D%5D%3A%3Anew()%3B%0A%0A%20%20%20%20if%20(%24TargetListV2.Count%20-gt%200)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24Xml%20%3D%20%5Bxml%5D%3A%3Anew()%3B%0A%20%20%20%20%20%20%20%20%24Xml.LoadXml((%5BSystem.Text.Encoding%5D%3A%3AUnicode.GetString(%24TargetListV2%5B0%5D)).SubString(1))%3B%0A%0A%20%20%20%20%20%20%20%20foreach%20(%24Entry%20in%20%24Xml.DocumentElement.target)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24Targets.Add(%5BDfsNamespaceV2Target%5D%3A%3Anew(%24Entry.state%2C%20%24Entry.InnerText))%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%0A%20%20%20%20return(%24Targets)%3B%0A%7D%0A%23endregion%0A%0A%0A%23region%20Preamble.%0A%24RootDSE%20%3D%20%5Badsi%5D%22LDAP%3A%2F%2FRootDSE%22%3B%0A%24Server%20%3D%20%24RootDSe.dNSHostName%5B0%5D.ToLowerInvariant()%3B%0A%24DefaultNamingContext%20%3D%20%24RootDSE.defaultNamingContext%5B0%5D%3B%0A%24AdsPrefix%20%3D%20%22LDAP%3A%2F%2F%24Server%22%3B%0A%0AWrite-Verbose%20%22Connected%20to%20domain%20controller%3A%20%24Server%22%3B%0AWrite-Verbose%20%22Default%20naming%20context%3A%20%24DefaultNamingContext%22%3B%0A%23endregion%0A%0A%23region%20Enumerate%20domain%20controllers%20for%20SYSVOL%20DFS-R%20memberships.%20These%20represent%20the%20forward%20references%20pointing%20to%20the%20replication%20groups.%0AWrite-Warning%20%22Enumerating%20domain%20controller%20SYSVOL%20DFS-R%20memberships%3A%22%3B%0A%24SysvolTopology%20%3D%20%5Badsi%5D%22%24AdsPrefix%2FOU%3DDomain%20Controllers%2C%24DefaultNamingContext%22%3B%0Aforeach%20(%24DomainController%20in%20%24SysvolTopology.Children)%0A%7B%0A%20%20%20%20if%20(-not%20%5Badsi%5D%3A%3AExists(%22%24AdsPrefix%2FCN%3DDFSR-LocalSettings%2C%24(%24DomainController.distinguishedName)%22))%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20continue%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20foreach%20(%24DfsrSubscriber%20in%20%24DomainController.Children.Find(%22CN%3DDFSR-LocalSettings%22).Children)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%24DfsrSubscriberSummary%20%3D%20%5BDfsrSubscriber%5D%3A%3Anew(%24DfsrSubscriber.objectGUID%5B0%5D%2C%20%24DfsrSubscriber.Name%5B0%5D%2C%20%24DfsrSubscriber.distinguishedName%5B0%5D%2C%20%24DfsrSubscriber.Properties%5B'msDFSR-MemberReference'%5D)%3B%0A%20%20%20%20%20%20%20%20%24DfsrSubscriberSummary%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20if%20(%24DfsrSubscriberSummary.Status.Equals(%22Okay%22%2C%20%5BSystem.StringComparison%5D%3A%3AOrdinal))%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20foreach%20(%24DfsrSubscription%20in%20%24DfsrSubscriber.Children)%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%20Arguably%2C%20this%20could%20be%20left%20out%20as%20it%20currently%20doesn't%20add%20much%20to%20the%20SYSVOL%20discussion.%20Only%20red%20flag%20would%20be%20if%20it%20were%20missing%20(given%20the%20subscriber%20implicitly%20exists.)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5BDfsrSubscription%5D%3A%3Anew(%24DfsrSubscription.objectGUID%5B0%5D%2C%20%24DfsrSubscription.Name%5B0%5D%2C%20%24DfsrSubscription.distinguishedName%5B0%5D)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%24SysvolTopology.Dispose()%3B%0A%23endregion%0A%0A%23region%20Enumerate%20DFS-R%20replication%20groups.%20These%20contain%20the%20topology%20definitions%2C%20which%20in%20turn%20contain%20back-link%20references%20to%20the%20server%20objects'%20membership%20definitions.%0AWrite-Warning%20%22Enumerating%20DFS-R%20replication%20group%20topologies%3A%22%3B%0A%24DfsrGroups%20%3D%20%5Badsi%5D%22%24AdsPrefix%2FCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2C%24DefaultNamingContext%22%3B%0Aforeach%20(%24DfsrGroup%20in%20%24DfsrGroups.Children)%0A%7B%0A%20%20%20%20%24DfsrGroupSummary%20%3D%20%5BDfsrReplicationGroup%5D%3A%3Anew(%24DfsrGroup.objectGUID%5B0%5D%2C%20%24DfsrGroup.Name%5B0%5D%2C%20%24DfsrGroup.distinguishedName%5B0%5D)%3B%0A%20%20%20%20%24DfsrGroupSummary%3B%0A%0A%20%20%20%20if%20(%24DfsrGroupSummary.Status.Equals(%22Okay%22%2C%20%5BSystem.StringComparison%5D%3A%3AOrdinal))%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20foreach%20(%24DfsrMember%20in%20%24DfsrGroup.Children.Find(%22CN%3DTopology%22).Children)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%5BDfsrMember%5D%3A%3Anew(%24DfsrMember.objectGUID%5B0%5D%2C%20%24DfsrMember.Name%5B0%5D%2C%20%24DfsrMember.distinguishedName%5B0%5D%2C%20%24DfsrMember.'msDFSR-ComputerReference'%2C%20%24DfsrMember.'msDFSR-MemberReferenceBL')%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%24DfsrGroups.Dispose()%3B%0A%23endregion%0A%0A%23region%20Enumerate%20DFS-N%20namespaces.%20Note%3A%20SYSVOL%20isn't%20defined%20here%20as%20that's%20handled%20differently.%0AWrite-Warning%20%22Enumerating%20DFS-N%20namespaces%3A%22%3B%0A%24DfsNamespaces%20%3D%20%5Badsi%5D%22%24AdsPrefix%2FCN%3DDfs-Configuration%2CCN%3DSystem%2C%24DefaultNamingContext%22%3B%0Aforeach%20(%24DfsNamespaceAnchor%20in%20%24DfsNamespaces.Children)%0A%7B%0A%20%20%20%20if%20(%24DfsNamespaceAnchor.Children.Count%20-eq%200)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20continue%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%20%20foreach%20(%24DfsNamespace%20in%20%24DfsNamespaceAnchor.Children)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%5BDfsNamespaceV2%5D%3A%3Anew(%24DfsNamespace.objectGUID%5B0%5D%2C%20%24DfsNamespace.Name%5B0%5D%2C%20%24DfsNamespace.distinguishedName%5B0%5D%2C%20%24DfsNamespace.'msDFS-TargetListv2')%3B%0A%20%20%20%20%7D%0A%7D%0A%24DfsNamespaces.Dispose()%3B%0A%23endregion%0A%0A%24RootDSE.Dispose()%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3288972%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3288972%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314983%22%20target%3D%22_blank%22%3E%40LainRobertson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20still%20don't%20understand%20how%20I%20can%20delete%20the%20object%20if%20it%20doesn't%20appear%20either%20in%20AD%20or%20ADSI%20editor.%3C%2FP%3E%3CPRE%3ECN%3Dc3b24e94-239f-4621-b82b-b356d6cc9bed%2CCN%3DTopology%2CCN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3287289%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3287289%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%2C%20given%20you%20didn't%20get%20any%20values%20returned%20from%20that%20command%2C%20just%20delete%20the%20object%20listed%20in%20the%20Event%20Viewer%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20other%20words%2C%20delete%20the%20following%20object%20from%20AD%20(make%20sure%20you%20check%20I%20haven't%20typed%20the%20GUID%20incorrectly%20-%20you%20can%20copy-and-paste%20it%20from%20the%20Event%20Viewer%20error%20if%20you%20like)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ECN%3Dc3b24e94-239f-4621-b82b-b356d6cc9bed%2CCN%3DTopology%2CCN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3286447%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3286447%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314983%22%20target%3D%22_blank%22%3E%40LainRobertson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20for%20your%20detailed%20response!%3CBR%20%2F%3EI%20have%20tried%20to%20run%20the%20PowerShell%20script%20and%20it%20doesn't%20return%20any%20values.%20And%20I%20didn't%20clearly%20understood%20how%20I%20can%20delete%20it%20now%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22nikitamobile855_0-1649995784687.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F364421iC53C3509163EFD58%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22nikitamobile855_0-1649995784687.png%22%20alt%3D%22nikitamobile855_0-1649995784687.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285801%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285801%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EActually%2C%20I%20was%20going%20a%20bit%20too%20fast%20before%20without%20paying%20proper%20attention%20to%20detail.%20Specifically%2C%20the%20GUID%20from%20your%20Event%20Log%20error%20doesn't%20match%20anything%20below%20your%20ADSI%20Edit%20picture.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20such%2C%20the%20Event%20Log%20error%20isn't%20related%20%3CEM%3E%3CU%3Eat%20all%3C%2FU%3E%3C%2FEM%3E%20to%20your%20ADSI%20Edit%20picture.%20This%20is%20actually%20good%20news%20though%20as%20I'll%20explain%20after%20speaking%20to%20the%20Event%20Log%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20reference%20to%20UZTASSRV01.sm.local%20within%20the%20Event%20Viewer%20error%20is%20only%20saying%20which%20domain%20controller%20reported%20the%20issue%2C%20not%20that%20the%20domain%20controller%20is%20part%20of%20the%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3EDealing%20with%20the%20Event%20Log%20error%3A%3C%2FU%3E%3C%2FP%3E%3CP%3EWhat%20we%20have%20from%20the%20Event%20Log%20error%20is%20a%20%3CEM%3E%3CU%3Eforward%3C%2FU%3E%3C%2FEM%3E%20reference%20to%20the%20%22msDFSR-Member%22%20(i.e.%20objectClass%20%3D%20msDFSR-Member)%20object%20in%20AD.%20This%20object%20lives%20under%20the%20%22CN%3DDFSR-GlobalSettings%2CCN%3DSystem%22%20area%2C%20and%20it's%20this%20object%20that%20is%20missing%20a%20value%20for%20the%20%22msDFSR-ComputerReference%22%20attribute%20(which%20is%20what%20I%20was%20talking%20about%20before.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20new%20part%20is%20this%3A%20You%20need%20to%20run%20a%20search%20to%20see%20if%20a%20matching%20%22msDFSR-Subscriber%22%20object%20%3CU%3E%3CEM%3Ewith%20the%20same%20GUID%20value%20for%20the%20%22cn%22%20attribute%3C%2FEM%3E%3C%2FU%3E%20exists.%20If%20it%20does%2C%20it%20will%20be%20nested%20below%20the%20computer%20we're%20trying%20to%20find%20in%20order%20to%20fix%20the%20missing%20%22msDFSR-ComputerReference%22%20error%20from%20the%20Event%20Log.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you're%20familiar%20with%20PowerShell%2C%20you%20can%20find%20the%20msDFSR-Subscriber%2C%20and%20hence%20the%20missing%20computer%20reference%20using%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-ADObject%20-Filter%20%7B%20(objectClass%20-eq%20%22msDFSR-Subscriber%22)%20-and%20(cn%20-eq%20%22c3b24e94-239f-4621-b82b-b356d6cc9bed%22)%20%7D%20%7C%20select%20distinguishedName%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EIf%20it%20%3CSTRONG%3Edoes%20not%3C%2FSTRONG%3E%20exist%3C%2FEM%3E%20then%20you%20should%20simply%20delete%20the%20object%20mentioned%20in%20the%20Event%20Log%20(i.e.%20%22CN%3D%3CGUID%3E%2CCN%3DTopology%2CCN%3DDFS%2CCN%3DDFSR-GlobalSettings%2C%20etc...%22.)%20Deleting%20the%20orphaned%20reference%20will%20stop%20event%206002%20from%20being%20logged.%3C%2FGUID%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EIf%20it%20%3CSTRONG%3Edoes%3C%2FSTRONG%3E%20exist%3C%2FEM%3E%2C%20you%20will%20get%20a%20value%20back%20that%20looks%20like%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markdown%22%3E%3CCODE%3ECN%3Dc3b24e94-239f-4621-b82b-b356d6cc9bed%2CCN%3DDFSR-LocalSettings%2CCN%3DYourServerName%2COU%3DSomeOU%2C...%2CDC%3Dsm%2CDC%3Dlocal%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20you%20want%20to%20do%20now%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ECopy%20from%20%22%3CFONT%20color%3D%22%230000FF%22%3ECN%3DYourServerName%2C%3C%2FFONT%3E%22%20to%20the%20end%20of%20the%20line%20above%20into%20something%20like%20Notepad%3B%3C%2FLI%3E%3CLI%3EIn%20ADSI%20Edit%2C%20edit%20the%20properties%20of%20%22CN%3Dc3b24e94-239f-4621-b82b-b356d6cc9bed%2CCN%3DTopology%2CCN%3DDFS%2CCN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22%3B%3C%2FLI%3E%3CLI%3ESet%20the%20value%20of%20the%20%3CFONT%20color%3D%22%230000FF%22%3EmsDFSR-ComputerReference%3C%2FFONT%3E%20attribute%20to%20the%20value%20you%20copied%20into%20Notepad%20from%20Step%201%3B%3C%2FLI%3E%3CLI%3EClick%20OK%20to%20accept%20the%20change.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20steps%20will%20put%20the%20missing%20computer%20reference%20back%20into%20the%20msDFSR-ComputerReference%20attribute%2C%20which%20will%20stop%20event%206002%20from%20being%20logged.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3EAbout%20the%20ADSI%20Edit%20picture%3C%2FU%3E%3CEM%3E%20(purely%20additional%20information%20for%20education%20and%20has%20nothing%20to%20do%20with%20your%20event%20log%20error)%3C%2FEM%3E%3CU%3E%3A%3C%2FU%3E%3C%2FP%3E%3CP%3EThe%20GUIDs%20your%20looking%20at%20under%20the%20domain%20controller%20object%20in%20ADSI%20Edit%20are%20the%20%3CEM%3E%3CU%3Eforward%3C%2FU%3E%3C%2FEM%3E%20references%20to%20the%20non-SYSVOL%20replicas%20to%20which%20the%20domain%20controller%2C%20UZTASSRV01.sm.local%2C%20is%20also%20a%20member.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20do%20not%20have%20to%20check%20those%20at%20all%20unless%20there's%20errors%20relating%20to%20them.%20You%20can%20if%20you'd%20like%2C%20but%20unless%20you're%20really%20unlucky%2C%20you%20will%20find%20matching%20%22msDFSR-Member%22%20objects%20matching%20the%20GUIDs%20from%20your%20ADSI%20Edit%20picture%20below%20one%20of%20the%20replica%20groups%20somewhere%20beneath%20%22CN%3DDFSR-GlobalSettings%2CCN%3DSystem%2CDC%3Dsm%2CDC%3Dlocal%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyhow%2C%20as%20I%20say%2C%20this%20is%20purely%20additional%20information.%20The%20only%20thing%20you%20need%20to%20remember%20is%20that%20your%20ADSI%20Edit%20picture%20is%20totally%20unrelated%20to%20the%20Event%20Log%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285614%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285614%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1154041%22%20target%3D%22_blank%22%3E%40nikitamobile855%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20isn't%20related%20to%20SYSVOL%20at%20all%20but%20another%20DFS-R%20replica%20that%20the%20domain%20controller%20once%20was%2Fpossibly%20still%20should%20be%20a%20member%20of.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20was%20removed%2C%20then%20it%20clearly%20wasn't%20successfully%20and%20cleanly%20removed%2C%20hence%20the%20attribute%20issue%20flagged%20as%20event%206002.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20domain%20controller%20is%20still%20meant%20to%20be%20a%20member%20of%20that%20replica%20(which%20ironically%20is%20simply%20named%20%22DFS%22)%20then%20you%20want%20to%20put%20the%20distinguishedName%20of%20the%20domain%20controller%20computer%20object%20(what%20you're%20looking%20at%20in%20ADSI%20Edit%3A%20%22CN%3DUZTASSRV01%2COU%3DDomain%20Controllers%2C...%22%20etc)%20into%20the%20%22msDFSR-ComputerReference%22%20on%20the%20object%20from%20the%20Event%20Viewer%20error%20(I'm%20not%20typing%20out%20GUIDs%20-%20it's%20the%20%22CN%3DTopology%22%20X.500%20path).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20domain%20controller%20is%20no%20longer%20mean%20to%20be%20a%20member%20of%20the%20replica%20then%20you%20want%20to%20remove%20the%20object%20listed%20in%20the%20Event%20Log%20error%20from%20AD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3ELain%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285444%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285444%22%20slang%3D%22en-US%22%3ELike%20I%20said%2C%20SYSVOL%20replication%20is%20done%20using%20DFSR%2C%20that's%20DFS%20replication.%20So%20it%20could%20be%20complaining%20about%20a%20missing%20replication%20partner%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285441%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285441%22%20slang%3D%22en-US%22%3EPreviously%20we%20had%202%20but%20later%20second%20one%20was%20demoted%20and%20completely%20excluded%20from%20the%20network.%20All%20FSMO%20roles%20were%20moved%20to%20current%20DC.%20I%20wonder%20how%20it%20can%20be%20an%20error%20with%20DFS%20replication%20if%20DFS%20role%20is%20even%20not%20installed%20on%20current%20server%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285423%22%20slang%3D%22en-US%22%3ERe%3A%20DFS%20replication%20issues%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285423%22%20slang%3D%22en-US%22%3E%3CP%3ESYSVOL%20replication%20is%20done%20using%20DFSRS%2C%20not%20sure%20if%20that%20GUID%20is%20part%20of%20that.%20Do%20you%20have%20multiple%20Domain%20Controllers%20or%20just%20one%3F%20You%20can%20always%20install%20the%20DFS%20Management%20tools%20for%20more%20investigation%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hello everyone, 

 

We are running Windows Server 2016 as a Primary Domain Controller. We don't have DFS management tool installed however I'm getting 6002 errors in event viewer. Please advise on how to investigate further. Object CN could not be found from ADSI edit

 

nikitamobile855_0-1649916245603.png

 

nikitamobile855_0-1649916098036.png

 

16 Replies

SYSVOL replication is done using DFSRS, not sure if that GUID is part of that. Do you have multiple Domain Controllers or just one? You can always install the DFS Management tools for more investigation

Previously we had 2 but later second one was demoted and completely excluded from the network. All FSMO roles were moved to current DC. I wonder how it can be an error with DFS replication if DFS role is even not installed on current server?
Like I said, SYSVOL replication is done using DFSR, that's DFS replication. So it could be complaining about a missing replication partner

@nikitamobile855 

 

This isn't related to SYSVOL at all but another DFS-R replica that the domain controller once was/possibly still should be a member of.

 

If it was removed, then it clearly wasn't successfully and cleanly removed, hence the attribute issue flagged as event 6002.

 

If the domain controller is still meant to be a member of that replica (which ironically is simply named "DFS") then you want to put the distinguishedName of the domain controller computer object (what you're looking at in ADSI Edit: "CN=UZTASSRV01,OU=Domain Controllers,..." etc) into the "msDFSR-ComputerReference" on the object from the Event Viewer error (I'm not typing out GUIDs - it's the "CN=Topology" X.500 path).

 

If the domain controller is no longer mean to be a member of the replica then you want to remove the object listed in the Event Log error from AD.

 

Cheers,

Lain

@nikitamobile855 

 

Actually, I was going a bit too fast before without paying proper attention to detail. Specifically, the GUID from your Event Log error doesn't match anything below your ADSI Edit picture.

 

As such, the Event Log error isn't related at all to your ADSI Edit picture. This is actually good news though as I'll explain after speaking to the Event Log error.

 

The reference to UZTASSRV01.sm.local within the Event Viewer error is only saying which domain controller reported the issue, not that the domain controller is part of the issue.

 

Dealing with the Event Log error:

What we have from the Event Log error is a forward reference to the "msDFSR-Member" (i.e. objectClass = msDFSR-Member) object in AD. This object lives under the "CN=DFSR-GlobalSettings,CN=System" area, and it's this object that is missing a value for the "msDFSR-ComputerReference" attribute (which is what I was talking about before.)

 

The new part is this: You need to run a search to see if a matching "msDFSR-Subscriber" object with the same GUID value for the "cn" attribute exists. If it does, it will be nested below the computer we're trying to find in order to fix the missing "msDFSR-ComputerReference" error from the Event Log.

 

If you're familiar with PowerShell, you can find the msDFSR-Subscriber, and hence the missing computer reference using:

Get-ADObject -Filter { (objectClass -eq "msDFSR-Subscriber") -and (cn -eq "c3b24e94-239f-4621-b82b-b356d6cc9bed") } | select distinguishedName

 

If it does not exist then you should simply delete the object mentioned in the Event Log (i.e. "CN=<guid>,CN=Topology,CN=DFS,CN=DFSR-GlobalSettings, etc...".) Deleting the orphaned reference will stop event 6002 from being logged.

 

If it does exist, you will get a value back that looks like:

CN=c3b24e94-239f-4621-b82b-b356d6cc9bed,CN=DFSR-LocalSettings,CN=YourServerName,OU=SomeOU,...,DC=sm,DC=local

 

What you want to do now is:

 

  1. Copy from "CN=YourServerName," to the end of the line above into something like Notepad;
  2. In ADSI Edit, edit the properties of "CN=c3b24e94-239f-4621-b82b-b356d6cc9bed,CN=Topology,CN=DFS,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local";
  3. Set the value of the msDFSR-ComputerReference attribute to the value you copied into Notepad from Step 1;
  4. Click OK to accept the change.

 

These steps will put the missing computer reference back into the msDFSR-ComputerReference attribute, which will stop event 6002 from being logged.

 

About the ADSI Edit picture (purely additional information for education and has nothing to do with your event log error):

The GUIDs your looking at under the domain controller object in ADSI Edit are the forward references to the non-SYSVOL replicas to which the domain controller, UZTASSRV01.sm.local, is also a member.

 

You do not have to check those at all unless there's errors relating to them. You can if you'd like, but unless you're really unlucky, you will find matching "msDFSR-Member" objects matching the GUIDs from your ADSI Edit picture below one of the replica groups somewhere beneath "CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local".

 

Anyhow, as I say, this is purely additional information. The only thing you need to remember is that your ADSI Edit picture is totally unrelated to the Event Log error.

 

Cheers,

Lain

@LainRobertson 

 

Thanks a lot for your detailed response!
I have tried to run the PowerShell script and it doesn't return any values. And I didn't clearly understood how I can delete it now? 

nikitamobile855_0-1649995784687.png

 

@nikitamobile855 

 

Okay, given you didn't get any values returned from that command, just delete the object listed in the Event Viewer error.

 

In other words, delete the following object from AD (make sure you check I haven't typed the GUID incorrectly - you can copy-and-paste it from the Event Viewer error if you like):

 

CN=c3b24e94-239f-4621-b82b-b356d6cc9bed,CN=Topology,CN=DFS,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local

 

Cheers,

Lain

@LainRobertson 

 

I still don't understand how I can delete the object if it doesn't appear either in AD or ADSI editor.

CN=c3b24e94-239f-4621-b82b-b356d6cc9bed,CN=Topology,CN=DFS,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local

 

@nikitamobile855 

 

If you can't see it then the error doesn't make any sense, either.

 

Rather than trying to work through checking each object individually, I've written a quick script (inserted at the bottom of this post) to pull some of the DFS (-N and -R) configuration information from Active Directory.

 

If you can save it as "Get-DfsConfiguration.ps1", then run it as shown below and upload the JSON, that would help with the cross-referencing.

 

You can direct-message me the results if you'd prefer not to post them here, but there's nothing confidential about it, meaning others here may be able to offer insight if you choose to paste the results in here.

 

 

.\Get-DfsConfiguration.ps1 | ConvertTo-Json -Depth 3

 

 

If the script throws an error, let me know and I'll fix it as I didn't spend much time quality assuring it. But if it behaves, the output will help with both of your TechCommunity threads.

 

It does not need any special rights and can (and should) be run as a normal, unprivileged user.

 

Also, can you check that the DFS service is running on your domain controller? (i.e. "Get-Service -Name Dfs")

 

Cheers,

Lain

 

 

[cmdletbinding()]
Param()

#region Class definitions.
class DfsrSubscriber
{
    [string] $Status;
    [guid] $ObjectGUID;
    [string] $ObjectClass;
    [string] $Name;
    [string] $DistinguishedName;
    [string] $MemberReference;

    DfsrSubscriber([guid] $ObjectGUID, [string] $Name, [string] $DistinguishedName, [System.DirectoryServices.PropertyValueCollection] $MemberReference)
    {
        $this.ObjectGUID = $ObjectGUID;
        $this.ObjectClass = "msDFSR-Subscriber";
        $this.Name = $Name;
        $this.DistinguishedName = $DistinguishedName;
        if (($MemberReference.Count -gt 0) -and ([adsi]::Exists("$($Script:AdsPrefix)/CN=SYSVOL Subscription,$DistinguishedName")))
        {
            $this.Status = "Okay";
            $this.MemberReference = $MemberReference[0];
        }
        else
        {
            $this.Status = "Unhealthy";
            $this.MemberReference = $null;
        }
    }
}

class DfsrSubscription
{
    [string] $Status;
    [guid] $ObjectGUID;
    [string] $ObjectClass;
    [string] $Name;
    [string] $DistinguishedName;

    DfsrSubscription([guid] $ObjectGUID, [string] $Name, [string] $DistinguishedName)
    {
        $this.Status = "Okay";
        $this.ObjectGUID = $ObjectGUID;
        $this.ObjectClass = "msDFSR-Subscription";
        $this.Name = $Name;
        $this.DistinguishedName = $DistinguishedName;
    }
}

class DfsrReplicationGroup
{
    [string] $Status;
    [guid] $ObjectGUID;
    [string] $ObjectClass;
    [string] $Name;
    [string] $DistinguishedName;

    DfsrReplicationGroup([guid] $ObjectGUID, [string] $Name, [string] $DistinguishedName)
    {
        $this.ObjectGUID = $ObjectGUID;
        $this.ObjectClass = "msDFSR-ReplicationGroup";
        $this.Name = $Name;
        $this.DistinguishedName = $DistinguishedName;
        
        if ([adsi]::Exists("$($Script:AdsPrefix)/CN=Topology,$DistinguishedName"))
        {
            $this.Status = "Okay";
        }
        else
        {
            $this.Status = "Unhealthy";
        }
    }
}

class DfsrMember
{
    [string] $Status;
    [guid] $ObjectGUID;
    [string] $ObjectClass;
    [string] $Name;
    [string] $DistinguishedName;
    [string] $ComputerReference;
    [string] $MembershipBL;

    DfsrMember([guid] $ObjectGUID, [string] $Name, [string] $DistinguishedName, [System.DirectoryServices.PropertyValueCollection] $ComputerReference, [System.DirectoryServices.PropertyValueCollection] $MembershipBL)
    {
        $this.ObjectGUID = $ObjectGUID;
        $this.ObjectClass = "msDFSR-Member";
        $this.Name = $Name;
        $this.DistinguishedName = $DistinguishedName;
        $this.Status = "Okay";
        $this.MembershipBL = $MembershipBL;
        
        if ($ComputerReference.Count -gt 0)
        {
            $this.ComputerReference = $ComputerReference[0];
        }
        else
        {
            $this.Status = "Unhealthy";
            $this.ComputerReference = $null;
        }
        
        if ($MembershipBL.Count -gt 0)
        {
            $this.MembershipBL = $MembershipBL[0];
        }
        else
        {
            $this.Status = "Unhealthy";
            $this.MembershipBL = $null;
        }
    }
}

class DfsNamespaceV2
{
    [string] $Status;
    [guid] $ObjectGUID;
    [string] $ObjectClass;
    [string] $Name;
    [string] $DistinguishedName;
    [System.Collections.Generic.List[DfsNamespaceV2Target]] $Targets;

    DfsNamespaceV2([guid] $ObjectGUID, [string] $Name, [string] $DistinguishedName, [System.DirectoryServices.PropertyValueCollection] $Targets)
    {
        $this.ObjectGUID = $ObjectGUID;
        $this.ObjectClass = "msDFS-Namespacev2";
        $this.Name = $Name;
        $this.DistinguishedName = $DistinguishedName;
        $this.Targets = Get-DfsV2Target -TargetListV2 $Targets;

        if ($this.Targets.Count -gt 0)
        {
            $this.Status = "Okay";
        }
        else
        {
            $this.Status = "Unhealthy";
        }
    }
}

class DfsNamespaceV2Target
{
    [bool] $Online;
    [string] $Target;

    DfsNamespaceV2Target([string] $Status, [string] $Target)
    {
        $this.Online = $Status -eq "online";
        $this.Target = $Target;
    }
}
#endregion

#region Function definitions.
function Get-DfsV2Target([System.DirectoryServices.PropertyValueCollection] $TargetListV2)
{
    $Targets = [System.Collections.Generic.List[DfsNamespaceV2Target]]::new();

    if ($TargetListV2.Count -gt 0)
    {
        $Xml = [xml]::new();
        $Xml.LoadXml(([System.Text.Encoding]::Unicode.GetString($TargetListV2[0])).SubString(1));

        foreach ($Entry in $Xml.DocumentElement.target)
        {
            $Targets.Add([DfsNamespaceV2Target]::new($Entry.state, $Entry.InnerText));
        }
    }

    return($Targets);
}
#endregion


#region Preamble.
$RootDSE = [adsi]"LDAP://RootDSE";
$Server = $RootDSe.dNSHostName[0].ToLowerInvariant();
$DefaultNamingContext = $RootDSE.defaultNamingContext[0];
$AdsPrefix = "LDAP://$Server";

Write-Verbose "Connected to domain controller: $Server";
Write-Verbose "Default naming context: $DefaultNamingContext";
#endregion

#region Enumerate domain controllers for SYSVOL DFS-R memberships. These represent the forward references pointing to the replication groups.
Write-Warning "Enumerating domain controller SYSVOL DFS-R memberships:";
$SysvolTopology = [adsi]"$AdsPrefix/OU=Domain Controllers,$DefaultNamingContext";
foreach ($DomainController in $SysvolTopology.Children)
{
    if (-not [adsi]::Exists("$AdsPrefix/CN=DFSR-LocalSettings,$($DomainController.distinguishedName)"))
    {
        continue;
    }

    foreach ($DfsrSubscriber in $DomainController.Children.Find("CN=DFSR-LocalSettings").Children)
    {
        $DfsrSubscriberSummary = [DfsrSubscriber]::new($DfsrSubscriber.objectGUID[0], $DfsrSubscriber.Name[0], $DfsrSubscriber.distinguishedName[0], $DfsrSubscriber.Properties['msDFSR-MemberReference']);
        $DfsrSubscriberSummary;
        
        if ($DfsrSubscriberSummary.Status.Equals("Okay", [System.StringComparison]::Ordinal))
        {
            foreach ($DfsrSubscription in $DfsrSubscriber.Children)
            {
                # Arguably, this could be left out as it currently doesn't add much to the SYSVOL discussion. Only red flag would be if it were missing (given the subscriber implicitly exists.)
                [DfsrSubscription]::new($DfsrSubscription.objectGUID[0], $DfsrSubscription.Name[0], $DfsrSubscription.distinguishedName[0]);
            }
        }
    }
}
$SysvolTopology.Dispose();
#endregion

#region Enumerate DFS-R replication groups. These contain the topology definitions, which in turn contain back-link references to the server objects' membership definitions.
Write-Warning "Enumerating DFS-R replication group topologies:";
$DfsrGroups = [adsi]"$AdsPrefix/CN=DFSR-GlobalSettings,CN=System,$DefaultNamingContext";
foreach ($DfsrGroup in $DfsrGroups.Children)
{
    $DfsrGroupSummary = [DfsrReplicationGroup]::new($DfsrGroup.objectGUID[0], $DfsrGroup.Name[0], $DfsrGroup.distinguishedName[0]);
    $DfsrGroupSummary;

    if ($DfsrGroupSummary.Status.Equals("Okay", [System.StringComparison]::Ordinal))
    {
        foreach ($DfsrMember in $DfsrGroup.Children.Find("CN=Topology").Children)
        {
            [DfsrMember]::new($DfsrMember.objectGUID[0], $DfsrMember.Name[0], $DfsrMember.distinguishedName[0], $DfsrMember.'msDFSR-ComputerReference', $DfsrMember.'msDFSR-MemberReferenceBL');
        }
    }
}
$DfsrGroups.Dispose();
#endregion

#region Enumerate DFS-N namespaces. Note: SYSVOL isn't defined here as that's handled differently.
Write-Warning "Enumerating DFS-N namespaces:";
$DfsNamespaces = [adsi]"$AdsPrefix/CN=Dfs-Configuration,CN=System,$DefaultNamingContext";
foreach ($DfsNamespaceAnchor in $DfsNamespaces.Children)
{
    if ($DfsNamespaceAnchor.Children.Count -eq 0)
    {
        continue;
    }
    
    foreach ($DfsNamespace in $DfsNamespaceAnchor.Children)
    {
        [DfsNamespaceV2]::new($DfsNamespace.objectGUID[0], $DfsNamespace.Name[0], $DfsNamespace.distinguishedName[0], $DfsNamespace.'msDFS-TargetListv2');
    }
}
$DfsNamespaces.Dispose();
#endregion

$RootDSE.Dispose();

 

 

@LainRobertson 

 

Good morning! Please see the script outcome below

 

WARNING: Enumerating domain controller SYSVOL DFS-R memberships:
WARNING: Enumerating DFS-R replication group topologies:
WARNING: Enumerating DFS-N namespaces:
[
    {
        "Status":  "Unhealthy",
        "ObjectGUID":  "4510c737-8c38-495d-aa7b-e1f3ce92fa3b",
        "ObjectClass":  "msDFSR-Subscriber",
        "Name":  "45d9316b-1098-408e-a65d-8ce8449f0aaa",
        "DistinguishedName":  "CN=45d9316b-1098-408e-a65d-8ce8449f0aaa,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Con
trollers,DC=sm,DC=local",
        "MemberReference":  ""
    },
    {
        "Status":  "Unhealthy",
        "ObjectGUID":  "ea36c86a-ab6b-4648-ad76-16c5f2a21b32",
        "ObjectClass":  "msDFSR-Subscriber",
        "Name":  "a7297769-fdcd-4490-ae1c-c80808f44d36",
        "DistinguishedName":  "CN=a7297769-fdcd-4490-ae1c-c80808f44d36,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Con
trollers,DC=sm,DC=local",
        "MemberReference":  ""
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "43d626f7-7496-496a-8cf1-fefa0467c173",
        "ObjectClass":  "msDFSR-Subscriber",
        "Name":  "Domain System Volume",
        "DistinguishedName":  "CN=Domain System Volume,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,D
C=local",
        "MemberReference":  "CN=UZTASSRV01,CN=Topology,CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC
=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "43d626f7-7496-496a-8cf1-fefa0467c173",
        "ObjectClass":  "msDFSR-Subscription",
        "Name":  "Domain System Volume",
        "DistinguishedName":  "CN=Domain System Volume,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,D
C=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "3d74223e-5f1f-40c2-bf42-3255fd57227e",
        "ObjectClass":  "msDFSR-ReplicationGroup",
        "Name":  "DFS",
        "DistinguishedName":  "CN=DFS,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "331bda39-781e-4bb9-ab31-b8432cc2f5ce",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "45d9316b-1098-408e-a65d-8ce8449f0aaa",
        "DistinguishedName":  "CN=45d9316b-1098-408e-a65d-8ce8449f0aaa,CN=Topology,CN=DFS,CN=DFSR-GlobalSettings,CN=Syst
em,DC=sm,DC=local",
        "ComputerReference":  "CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=local",
        "MembershipBL":  "CN=45d9316b-1098-408e-a65d-8ce8449f0aaa,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controll
ers,DC=sm,DC=local"
    },
    {
        "Status":  "Unhealthy",
        "ObjectGUID":  "66a0d320-8b34-4f9e-8dd1-3a93c5c4b7a1",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "c3b24e94-239f-4621-b82b-b356d6cc9bed",
        "DistinguishedName":  "CN=c3b24e94-239f-4621-b82b-b356d6cc9bed,CN=Topology,CN=DFS,CN=DFSR-GlobalSettings,CN=Syst
em,DC=sm,DC=local",
        "ComputerReference":  "",
        "MembershipBL":  ""
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "cbc3347c-ee38-4d15-9737-34a0b9cafa84",
        "ObjectClass":  "msDFSR-ReplicationGroup",
        "Name":  "DFS_IT",
        "DistinguishedName":  "CN=DFS_IT,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local"
    },
    {
        "Status":  "Unhealthy",
        "ObjectGUID":  "837b0736-bf19-41ff-a3bd-29c43c0c8c49",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "6819feb2-58e2-4400-a2b0-db0a3c442183",
        "DistinguishedName":  "CN=6819feb2-58e2-4400-a2b0-db0a3c442183,CN=Topology,CN=DFS_IT,CN=DFSR-GlobalSettings,CN=S
ystem,DC=sm,DC=local",
        "ComputerReference":  "",
        "MembershipBL":  ""
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "fbeded44-7272-44d8-bea3-f2e700d68d3f",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "a7297769-fdcd-4490-ae1c-c80808f44d36",
        "DistinguishedName":  "CN=a7297769-fdcd-4490-ae1c-c80808f44d36,CN=Topology,CN=DFS_IT,CN=DFSR-GlobalSettings,CN=S
ystem,DC=sm,DC=local",
        "ComputerReference":  "CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=local",
        "MembershipBL":  "CN=a7297769-fdcd-4490-ae1c-c80808f44d36,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controll
ers,DC=sm,DC=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "3a3d05c2-7738-4b40-b14c-03af84841594",
        "ObjectClass":  "msDFSR-ReplicationGroup",
        "Name":  "Domain System Volume",
        "DistinguishedName":  "CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "88883960-839e-40b5-962c-f3020f49250d",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "UZTASSRV01",
        "DistinguishedName":  "CN=UZTASSRV01,CN=Topology,CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,
DC=local",
        "ComputerReference":  "CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=local",
        "MembershipBL":  "CN=Domain System Volume,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=loc
al"
    },
    {
        "Status":  "Unhealthy",
        "ObjectGUID":  "5eb07891-a762-4aab-a04d-9ddefd9c318f",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "UZTASSVR02",
        "DistinguishedName":  "CN=UZTASSVR02,CN=Topology,CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,
DC=local",
        "ComputerReference":  "",
        "MembershipBL":  ""
    }
]

 

best response confirmed by nikitamobile855 (Contributor)
Solution

@nikitamobile855 

 

Thanks, Nikita. That helped a great deal and saved a lot of time.

 

I'll start at the end and work backwards.

 

You want to run these commands to clean up what is a very broken DFS-R configuration. I'll provide an in-depth explanation after the commands

 

 

Remove-ADObject -Identity "CN=45d9316b-1098-408e-a65d-8ce8449f0aaa,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=local" -Recursive -Confirm:$false;
Remove-ADObject -Identity "CN=a7297769-fdcd-4490-ae1c-c80808f44d36,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=local" -Recursive -Confirm:$false;
Remove-ADObject -Identity "CN=DFS,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local" -Recursive -Confirm:$false;
Remove-ADObject -Identity "CN=DFS_IT,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local" -Recursive -Confirm:$false;
Remove-ADObject -Identity "CN=UZTASSVR02,CN=Topology,CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local" -Recursive -Confirm:$false;

 

 

Overview

What the JSON output you provided showed is:

 

  1. There are no DFS namespaces configured;
  2. The DFS replication group definitions are badly broken in places;
  3. The "built-in" SYSVOL DFS-R definition is fine but contains an orphaned reference to a domain controller no longer in existence (UZTASSVR02);
  4. Three DFS replications groups are defined:
    1. DFS;
    2. DFS_IT;
    3. Domain System Volume.

 

Approach

There were two options I could have pursued:

 

  1. Add the missing "MemberReference" values onto the existing "msDFSR-Subscriber" objects; or
  2. Delete the DFS and DFS_IT DFS replication groups.

 

I have chosen option 2 since:

 

  1. There is no associated DFS namespace;
  2. The replication groups would only have a single member, which is pointless;
  3. It provides you with the cleanest outcome, since you can always create new DFS namespaces and replication groups if you decide to later on, and you won't have to worry about old, corrupt data lingering around.

 

Explanation of each command

LineComment
1Removes the orphaned subscription to the "DFS" replication group from UZTASSRV01.
2Removes the orphaned subscription to the "DFS_IT" replication group from UZTASSRV01.
3Removes the "DFS" replication group.
4Removes the "DFS_IT" replication group.
5Removes the orphaned UZTASSVR02 reference from the "Domain System Volume" replication group.

 

Once you have removed these objects, it will take DFS-R a little while to recognise the changes.

 

If you want to hurry the process up, you can do any one of the following:

 

  1. Restart UZTASSRV01 (since it's the only remaining host); or
  2. Restart the the "DFSR" service on UZTASSRV01; or
  3. Run the following command on UZTASSRV01 (it may not be installed though, which is fine):
dfsdiag pollad

 

Anyhow, once you've either waited a bit or hurried things up, you should find the Event Viewer errors stop.

 

Cheers,

Lain

@LainRobertson 

 

Thanks a lot for your effort and this very detailed answer. I'm going to try according to your proposal. Just wanted to clarify whether removal of those DSF references shouldn't anyhow impact existing DC, AD, GPO functionality currently running on uztassrv01? 

@nikitamobile855 

 

No, not at all.

 

Lines 1 to 4 have nothing to do with the SYSVOL (which in turn relates to GPO and all that stuff).

 

Line 5 does relate to SYSVOL but only in the context that it's removing the now-orphaned reference to the domain controller UZTASSVR02 which no longer exists. In other words, it's fixing the SYSVOL replication group by removing the reference to UZTASSVR02.

 

Cheers,

Lain

@nikitamobile855  

 

With respect to UZTASSVR02, it looks like the demotion didn't work cleanly.

 

This isn't uncommon and normally you can run a process commonly called the "metadata cleanup" process to remove these kinds of orphaned references, such as you have in your Domain System Volume DFS-R set.

 

But because there are more issues than just the orphaned reference to UZTASSVR02 (such as those relating to the DFS and DFS_IT replication groups), it was easier just to deal with everything in one reply rather than handling the DFS, DFS_IT and Domain System Volume replication groups separately.

 

Cheers,

Lain

@LainRobertson 

 

I have launched the commands to remove broken references and here is the the JSON outcome afterwards.

WARNING: Enumerating domain controller SYSVOL DFS-R memberships:
WARNING: Enumerating DFS-R replication group topologies:
WARNING: Enumerating DFS-N namespaces:
[
    {
        "Status":  "Okay",
        "ObjectGUID":  "43d626f7-7496-496a-8cf1-fefa0467c173",
        "ObjectClass":  "msDFSR-Subscriber",
        "Name":  "Domain System Volume",
        "DistinguishedName":  "CN=Domain System Volume,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,D
C=local",
        "MemberReference":  "CN=UZTASSRV01,CN=Topology,CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC
=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "43d626f7-7496-496a-8cf1-fefa0467c173",
        "ObjectClass":  "msDFSR-Subscription",
        "Name":  "Domain System Volume",
        "DistinguishedName":  "CN=Domain System Volume,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,D
C=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "3a3d05c2-7738-4b40-b14c-03af84841594",
        "ObjectClass":  "msDFSR-ReplicationGroup",
        "Name":  "Domain System Volume",
        "DistinguishedName":  "CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,DC=local"
    },
    {
        "Status":  "Okay",
        "ObjectGUID":  "88883960-839e-40b5-962c-f3020f49250d",
        "ObjectClass":  "msDFSR-Member",
        "Name":  "UZTASSRV01",
        "DistinguishedName":  "CN=UZTASSRV01,CN=Topology,CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,DC=sm,
DC=local",
        "ComputerReference":  "CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=local",
        "MembershipBL":  "CN=Domain System Volume,CN=DFSR-LocalSettings,CN=UZTASSRV01,OU=Domain Controllers,DC=sm,DC=loc
al"
    }
]

@nikitamobile855 

 

That looks a lot healthier.

 

You should find your DFS-R errors stop soon.

 

You can probably focus on your other thread (the "gpt.ini" error) now as this one should be resolved.

 

Cheers,

Lain