Difference between revisions of "NTP client configuration"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(No difference)

Revision as of 21:54, 25 February 2006

How to enable NTP client on Windows.

<package
       id="ntp-client"
       name="ntp client configuration"
       revision="1"
       reboot="false"
       priority="1"
       execute="once">
       <install cmd="\\radca\programy\ntp\install.bat" />
       <upgrade cmd="\\radca\programy\ntp\install.bat" />
       <remove cmd="\\radca\programy\ntp\uninstall.bat" />
</package>

install.bat:

sc config w32time start= auto
net time /setsntp:192.168.0.100
net stop w32time & net start w32time
w32tm /resync /nowait

uninstall.bat:

net time /setsntp:time.windows.com
net stop w32time & net start w32time
w32tm /resync /nowait