Set-ADReplicationConnection command failing.

Anish Debnath 81 Reputation points
2022-03-30T22:01:44.947+00:00

I am trying to use the Powershell command Set-ADReplicationConnection -Identity "5f98e288-19e0-47a0-9677-57f05ed54f6b" -ReplicateFromDirectoryServer corp-DC01
But it's failing. I am not sure about the GUID, which GUID to be used here ?
My goal here is, I have a site, some sitelinks are set as automatic and some are manual, I am trying to convert those manual connections to automatic without manually changing the "options" attribute.
I am referring this article.
https://learn.microsoft.com/en-us/powershell/module/activedirectory/set-adreplicationconnection?view=windowsserver2022-ps

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,714 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,574 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gary Reynolds 9,426 Reputation points
    2022-03-31T05:01:07.967+00:00

    Hi @Anish Debnath

    The easier option, if your sites and site links are setup correctly, is to delete the manually created replication connections, force the kcc to run and let it recreate them as required.

    Gary

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.