From owner-freebsd-questions@FreeBSD.ORG Sun Sep 2 10:53:24 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18D9B16A419 for ; Sun, 2 Sep 2007 10:53:24 +0000 (UTC) (envelope-from takhoos@hotmail.com) Received: from bay0-omc1-s36.bay0.hotmail.com (bay0-omc1-s36.bay0.hotmail.com [65.54.246.108]) by mx1.freebsd.org (Postfix) with ESMTP id 041B413C458 for ; Sun, 2 Sep 2007 10:53:24 +0000 (UTC) (envelope-from takhoos@hotmail.com) Received: from BAY124-W5 ([207.46.11.168]) by bay0-omc1-s36.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 2 Sep 2007 03:40:00 -0700 Message-ID: X-Originating-IP: [66.166.97.35] From: To: Date: Sun, 2 Sep 2007 06:40:00 -0400 Importance: Normal In-Reply-To: <200709021221.54268.fbsd.questions@rachie.is-a-geek.net> References: <80f4f2b20709012017m181fe312s14f7d4f60f9ba295@mail.gmail.com> <200709021221.54268.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 02 Sep 2007 10:40:00.0865 (UTC) FILETIME=[9D2DFD10:01C7ED4D] Subject: FreeBSD time servers and Windows clients X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 10:53:24 -0000 Hi all, I have one FreeBSD NTP server which syncs all my server clocks. Gettin= g the NTP server running was a piece of cake following the instructions in = the online handbook. Recently I was asked to sync a bunch of windows machi= nes (10 of them) to my NTP server. Now I'm not a windows person, so I ask= ed one of the windows people to figure out his side since my side was up an= d running. He wrote this little .bat file to run on the windows boxes to = be sync'd. Its pretty straight forward....just save it as a .bat file (ti= me.bat) and run it from your XP box. Make sure to enter your NTP IP addre= ss where the x's are below. It seems to work fine for us. Your mileag= e may vary. There may be better/easier ways of doing this, but this is wha= t works ok for us.... =20 Here's the .bat file....use it at your own risk.... ---------------------------------------------------------------------------= ------------------------------------ @echo Updating Time Service.... @echo. @echo. @echo off w32tm /config /manualpeerlist:xxx.xxx.xxx.xxx,0x8 /syncfromflags:manual w32tm /config /update @echo Restarting Time Service=20 @echo. @echo. net stop w32time net start w32time pause cls @echo Verify your Time Server's IP Address and SNTP Flag of "0x8" @echo. net time /querysntp @echo. @echo Exiting configuration=20 pause ---------------------------------------------------------------------------= --------------------------------------- -- Joe _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx=