Premkumar Yogeswaran's Blog

Active Directory | PowerShell | DNS | DHCP | Exchange Server | VM Ware

Disabling the Knowledge Consistency Checker (KCC) from automatically creating replication topology for a site

Posted by Premkumar Yogeswaran on May 21, 2013


The Knowledge Consistency Checker (KCC) is a component that automatically generates and maintains the intra-site and inter-site replication topology. You can disable the KCC’s automatic generation of intra-site or inter-site topology management, or both.

Intra-site link connection

Inter-site link connection

Prerequisites

At Windows Server 2003 domain controller, you have to install the support tools kit.

Lab environment

Computer FQDN: DC11.contoso.com

IP /Network / Site: 192.168.1.11/24 HKG

Roles: Domain Controller, DNS Server

Operating System: Windows Server 2008 Enterprise 64 bit

Inter-Site link: HKG-TYO

Computer FQDN: DC21.contoso.com

IP /Network / Site: 192.168.1.12/24 HKG

Roles: Domain Controller, DNS Server

Operating System: Windows Server 2008 Enterprise 64 bit

Inter-Site link: HKG-TYO

Computer FQDN: DC02.contoso.com

IP /Network / Site: 192.168.2.11/24 TYO

Roles: Domain Controller, DNS Server

Operating System: Windows Server 2008 Enterprise 64 bit

Inter-Site link: HKG-TYO

Disabling intra-site automatic generation

1. At DC11, log in as Domain Administrator.

2. Launch "Command Prompt".

3. Enter "repadmin /siteoptions".

By default, KCC’s automatic generation was enabled.

4. Enter the following command to disable intra-site automatic generation of HKG:

repadmin /siteoptions /site:HKG +IS_AUTO_TOPOLOGY_DISABLED

Now, intra-site automatic generation of HKG was disabled.

Remark: "repadmin /siteoptions /site:HKG +IS_AUTO_TOPOLOGY_DISABLED" affects all domain controllers in HKG site.

Test result

1. Still in DC11, launch "Active Directory Sites and Services".

2. Expand "Sites > HKG > Servers > DC11 > NTDS Settings".

3. At right pane, delete "<automatically generated>".

4. Go to "Command Prompt", enter "repadmin /kcc %computername%".

"repadmin /kcc"is applied to force the Knowledge Consistency Checker (KCC) on each targeted domain controller to immediately recalculate the inbound replication topology.

5. Back to "Active Directory Sites and Services", refresh "NTDS Settings" of DC11.

KCC doesn’t generate the intra-site connection in DC11.

6. To restore the setting, go to "Command Prompt", enter "repadmin /siteoptions /site:HKG -IS_AUTO_TOPOLOGY_DISABLED".

7. Enter "repadmin /kcc %computername%".

8. Back to "Active Directory Sites and Services", refresh "NTDS Settings" of DC11.

As a result, the intra-site automatic generation of HKG was enabled.

Disabling inter-site automatic generation

1. At DC02, log in as Domain Administrator.

2. Launch "Command Prompt".

3. Enter "repadmin /siteoptions".

4. Enter the following command to disable inter-site automatic generation of TYO:

repadmin /siteoptions /site:TYO +IS_INTER_SITE_AUTO_TOPOLOGY_DISABLED

Now, inter-site automatic generation of TYO was disabled.

Remark: "repadmin /siteoptions /site:TYO +IS_INTER_SITE_AUTO_TOPOLOGY_DISABLED" affects all domain controllers in TYO site.

Test result

1. Still in DC02, launch "Active Directory Sites and Services".

2. Expand "Sites > TYO > Servers > DC02 > NTDS Settings".

3. At right pane, delete "<automatically generated>".

4. Go to "Command Prompt", enter "repadmin /kcc %computername%".

5. Back to "Active Directory Sites and Services", refresh "NTDS Settings" of "DC02".

KCC doesn’t generate the inter-site connection in DC02.

6. To restore the setting, go to "Command Prompt", enter "repadmin /siteoptions /site:TYO -IS_INTER_SITE_AUTO_TOPOLOGY_DISABLED".

7. Enter "repadmin /kcc %computername%".

8. Back to "Active Directory Sites and Services", refresh "NTDS Settings" of DC02.

As a result, the inter-site automatic generation of TYO was enabled.

Remark: To disable intra and inter-site automatic generation, you can enter the following command:

repadmin /siteoptions /site:<site name> +IS_INTER_SITE_AUTO_TOPOLOGY_DISABLED +IS_TO_TOPOLOGY_DISABLED

Remark: You should create the intra or inter-site connection before disabling KCC’s automatic generation.

You can modify the KCC’s automatic generation by ADSI Edit.

1. At a domain controller, log in as Domain Administrator.

2. Launch "ADSI Edit".

3. Right-click "ADSI Edit", select "Connect to".

4. Next to "Select a well known Naming Context", select "Configuration".

5. Click "OK".

6. Expand "Configuration > CN=Configuration,DC=<Domain Name>,DC=com > CN=Sites > CN=<Site Name>".

7. At right pane, right-click "CN=NTDS Site Settings", select "Properties".

8. Next to "options".

9. Click "Edit".

10. In the "Values" box, type the appropriate value:

  • To disable automatic intra-site topology generation, use value 1 (decimal).
  • To disable automatic inter-site topology generation, use value 16 (decimal).
  • To disable both intra-site and inter-site topology generation, use value 17 (decimal).

11. Type "1", click "OK".

12. Click "OK".

13. Close "ADSI Edit".

Reference:

How to disable the Knowledge Consistency Checker from automatically creating replication topology

http://support.microsoft.com/kb/242780

Repadmin for Experts

http://technet.microsoft.com/en-us/library/cc811549(WS.10).aspx

Refer http://terrytlslau.tls1.cc/2011/07/disabling-knowledge-consistency-checker.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: