Difference between revisions of "NTP client configuration"
From WPKG | Open Source Software Deployment and Distribution
m |
|||
| Line 16: | Line 16: | ||
sc config w32time start= auto | sc config w32time start= auto | ||
net time /setsntp:192.168.0.100 | net time /setsntp:192.168.0.100 | ||
| − | net stop w32time | + | net stop w32time |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Revision as of 11:37, 21 June 2007
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