Difference between revisions of "NTP client configuration"
From WPKG | Open Source Software Deployment and Distribution
m |
m |
||
Line 8: | Line 8: | ||
priority="1" | priority="1" | ||
execute="once"> | execute="once"> | ||
− | <install cmd=" | + | <install cmd="%SOFTWARE%\ntp\install.bat" /> |
− | <upgrade cmd=" | + | <upgrade cmd="%SOFTWARE%\ntp\install.bat" /> |
− | <remove cmd=" | + | <remove cmd="%SOFTWARE%\ntp\uninstall.bat" /> |
</package> | </package> | ||
Revision as of 20:16, 2 October 2006
How to enable or disable NTP client on Windows.
<package id="ntp-client" name="ntp client configuration" revision="1" reboot="false" priority="1" execute="once"> <install cmd="%SOFTWARE%\ntp\install.bat" /> <upgrade cmd="%SOFTWARE%\ntp\install.bat" /> <remove cmd="%SOFTWARE%\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