JP Vossen on 22 Feb 2012 15:05:01 -0800

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] NTP rant

Date: Wed, 22 Feb 2012 14:32:49 -0500
From: Art Alexion<>

I can't get a single Windows machine -- the vast majority of our
servers and desktops -- to sync with it.  In fact, two of my senior
co-workers can get it to work with windows, either.  Most things we
have tried, unsuccessfully have been WAY more complicated than the
working Linux and OS X.

What did you try?

This is what I've used in my "mapdrives.cmd" since forever and it works for me:

REM Force-set the time now
REM Win7 gives, but I don't care:
REM     System error 1314 has occurred.
REM     A required privilege is not held by the client.
net time \\your_ntp_server /set /yes

REM Update/correct the SNTP service, i.e. correct the default I found on
REM XP Pro:  "The current SNTP value is:,0x1"
REM See also: net time /querysntp
net time /SETSNTP:"your_ntp_server" > NUL

JP Vossen, CISSP            |:::======|
My Account, My Opinions     |=========|
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --