Microsoft KB Archive/317368

= HOW TO: Use Lbridge.cmd to Replicate System Policies Between Windows 2000 and Windows NT 4.0 Domain Controllers =

PSS ID Number: 317368

Article Last Modified on 10/30/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q317368



IN THIS TASK

 * SUMMARY
 * ** How to Use Lbridge.cmd to Replicate System Policies
 * *** Edit the Lbridge.cmd Script
 * Use Task Scheduler to Schedule the Lbridge.cmd Script
 * REFERENCES



SUMMARY
This step-by-step article describes how to use the Lbridge.cmd script to replicate system policies from a Windows 2000-based domain controller to a Microsoft Windows NT 4.0-based domain controller.

The Lbridge.cmd script is available in the Microsoft Windows 2000 Resource Kit. You can edit this script to copy logon scripts from a Windows 2000-based domain controller to a Windows NT 4.0-based domain controller.

If you use system policies to configure client computers in a mixed-mode network (a network that contains both Windows 2000-based and Windows NT 4.0-based domain controllers), you must replicate the policies to all of the domain controllers in the network. In a Windows NT 4.0-based domain, this service is provided by the LANMan Directory Replication Service (LMRepl). Windows 2000-based domain controllers use the File Replication Service (FRS) to replicate changes between domain controllers. In effect, Windows 2000-based domain controllers replicate only with other Windows 2000-based domain controllers; Windows NT 4.0-based domain controllers replicate information only to other Windows NT 4.0-based domain controllers.

You can use the Lbridge.cmd script as a template to copy logon scripts that are stored on a Windows 2000-based domain controller to a Windows NT 4.0-based domain controller. You do this to bridge the FRS that is used by the Windows 2000-based domain controllers to the LMRepl topology that is used by the Windows NT 4.0-based domain controllers.

back to the top

How to Use Lbridge.cmd to Replicate System Policies
back to the top

Edit the Lbridge.cmd Script
Configure the Lbridge.cmd file by using a text editor, such as Notepad. To do this:  Start Windows Explorer, and then copy the Lbridge.cmd script file to the Windows 2000-based domain controller from which you want to replicate logon files. Right-click the Lbridge.cmd file, and then click Edit. Edit the L-Destination variable to point to the share on the Windows NT 4.0-based export server to which you want to replicate the logon scripts. For example, if your destination computer is named WinntSrv3, set the L-Destination variable to \\WinntSrv3\REPL$. The line becomes similar to:

Set L-Destination=\\WinntSrv3\REPL$

NOTE: In a default installation of Windows NT 4.0, the %SystemRoot%\System32\Repl\Export folder is shared as REPL$.

 Locate the &quot;XCopy&quot; section of the script. Remove the &quot;Echo&quot; command from the following line:

Echo Xcopy %L-Source% %L-Destination% /s /D

The line becomes:

Xcopy %L-Source% %L-Destination% /s /D

NOTE: You can also use the Robocopy utility that is included with the Windows 2000 Resource Kit instead of the xcopy command. Robocopy can delete files on the destination share. This may be useful if you want to remove system policy files from the Export server folder. To use Robocopy, remove the &quot;Echo&quot; statement from the Robocopy command line instead of from the Xcopy command-line.

 Save the file, and then quit Notepad.

back to the top

Use Task Scheduler to Schedule the Lbridge.cmd Script
After you modify the Lbridge.cmd script to meet your requirements, use the Windows 2000 Task Scheduler tool to schedule the script to run at a specified time and date. It is a good idea to schedule the Lbridge.cmd script to run every two hours.  Click Start, point to Settings, and then click Control Panel.</li> Double-click Scheduled Tasks.</li> Double-click Add Scheduled Task, and then click Next.</li> Click Browse.</li> In the Select Program to Schedule dialog box, browse to and then click the Lbridge.cmd file, and then click Open.</li> Either accept the default name that is displayed in the Type a name for this task box, or type the name that you want to use.</li> Click Daily, and then click Next.</li> In the Start time box, click 12:01 AM, click Every Day, and then click Next.</li> Type the user name and password of a user account with which to run the task. This account must be a member of the Administrators group. You must type the user name by using the following format, where  is the domain name, and   is the user account with which you want to schedule the task:

\

</li> Click Next.</li> Select the Open advanced properties for this task when I click Finish check box, and then click Finish.</li> Click the Schedule tab, and then click Advanced.</li> Select the Repeat task check box.</li> In the Every box, click 2, and then click hours.</li> Click Time, and then click 11:59 PM in the Time box.</li> Click OK, and then click OK.</li> <li>Verify that the new task is displayed in the Scheduled Tasks window, and then click Close on the File menu.</li></ol>

For additional information about how to schedule a program, click the article numbers below to view the articles in the Microsoft Knowledge Base:

226795 How to Modify a Scheduled Task to Repeat by Minutes or Hours

300160 HOW TO: Schedule a Server Process in Windows 2000

back to the top

<div class="references_section">