From owner-freebsd-questions@FreeBSD.ORG Sun Sep 2 19:30:26 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 6550716A419 for ; Sun, 2 Sep 2007 19:30:26 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by mx1.freebsd.org (Postfix) with ESMTP id 0951813C442 for ; Sun, 2 Sep 2007 19:30:25 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so684564nzf for ; Sun, 02 Sep 2007 12:30:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lqwbqiHteFpQK0fqzNF7qjbvNUSKqpywKRRFh8KE2oM8G3yOzbbmOLBwgk8czcZrsaADk34Bunn990xFccM2AWcM3GdaOwtVtD8LIIqN70YKtroULOFTz9FENT1VhzRKPaQVNrQY5MDLaeXLcouJqQppzdmxFxMt08fYYiqbuyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QjwM2btXk95PgZZO7k7H64HUE2mzhRoJK/TG/HOuluoraeLanljMA+TWwv1CiAWZb+iek5eMSefyHgNmGAxXj2PVDRPyaZLc6eiZB2Zh+uQTtVOakQiZDCOGAt9LHbSoO6+wuOqZD3N10gmatqPchOYHI0sGxM/Z9XhRXzt/qeM= Received: by 10.142.142.16 with SMTP id p16mr192061wfd.1188761424685; Sun, 02 Sep 2007 12:30:24 -0700 (PDT) Received: by 10.142.78.21 with HTTP; Sun, 2 Sep 2007 12:30:24 -0700 (PDT) Message-ID: Date: Sun, 2 Sep 2007 12:30:24 -0700 From: "Kurt Buff" To: "takhoos@hotmail.com" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20709012017m181fe312s14f7d4f60f9ba295@mail.gmail.com> <200709021221.54268.fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: 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 19:30:26 -0000 It's much simpler than that. c:\>net time /setsntp:ntpserver.yourdomain.tld or, if you have more than one ntp server c:\>net time /setsntp:"ntp1.yourdomain.tld ntp2.yourdomain.tld" On 9/2/07, takhoos@hotmail.com wrote: > > Hi all, > I have one FreeBSD NTP server which syncs all my server clocks. Getting 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 machines (10 of them) to my NTP server. Now I'm not a windows person, so I asked one of the windows people to figure out his side since my side was up and 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 (time.bat) and run it from your XP box. Make sure to enter your NTP IP address where the x's are below. It seems to work fine for us. Your mileage may vary. There may be better/easier ways of doing this, but this is what works ok for us.... > > 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 > @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 > pause > ------------------------------------------------------------------------------------------------------------------ > > -- > Joe > > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it now! > http://www.live.com/getstarted.aspx_______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >