11.30. Changing the Interval at Which the KCC Runs

Problem

You want to change the interval at which the KCC runs.

Solution

Using a graphical user interface

  1. Run regedit.exe from the command line or Start Run.

  2. Expand HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services NTDS Parameters.

  3. Right-click on Parameters and select New DWORD Value.

  4. Enter the following for the name: Repl topology update period (secs).

  5. Double-click on the new value and under Value data enter the KCC interval in number of seconds (900 is the default).

  6. Click OK.

Using a command-line interface

> reg add HKLM\System\CurrentControlSet\Services\NTDS\Parameters /v "Repl topology[RETURN] 
update period (secs)" /t REG_DWORD /d <NumSecs>

Using VBScript

' This code changes the interval in which the KCC runs.
' ------ SCRIPT CONFIGURATION ------
intNumSecs = <NumSecs>  ' Number of seconds between intervals 
                        ' 900 is default
' ------ END CONFIGURATION ---------

strNetlogonReg = "SYSTEM\CurrentControlSet\Services\NTDS\Parameters"
const HKLM = &H80000002
Set objReg = GetObject("winmgmts:root\default:StdRegProv")
objReg.SetDWORDValue HKLM, strNetlogonReg, _
                     "Repl topology update period (secs)", _
                     intNumSecs
WScript.Echo "KCC interval set to " & intNumSecs

Discussion

By default, the KCC checks its connections ever 15 minutes and makes changes as necessary. You can modify this interval by simply modifying the registry. This was necessary with many Windows 2000 implementations that had large topologies. In that case, the KCC may ...

Get Active Directory Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.