Changes

Jump to: navigation, search

NTP client configuration

109 bytes added, 20:51, 20 February 2008
m
no edit summary
How to enable or disable NTP client on Windows.
<source lang="xml"><package id="ntp-client" name="NTP time synchronization" revision="1" priority="999" reboot="false" execute="once">
<install cmd='cmd /c sc config w32time start= auto' />
<install cmd='cmd /c net time /setsntp:192.168.0.1' />
<remove cmd='cmd /c net stop w32time & net start w32time' />
<remove cmd='cmd /c w32tm /resync /nowait' />
</package></source>
or:
<source lang="xml"><package
id="ntp-client"
name="ntp client configuration"
<upgrade cmd="%SOFTWARE%\ntp\install.bat" />
<remove cmd="%SOFTWARE%\ntp\uninstall.bat" />
</package></source>
install.bat:
<source lang="dos">sc config w32time start= auto net time /setsntp:192.168.0.100 net stop w32time & net start w32time w32tm /resync /nowait</source>
uninstall.bat:
<source lang="dos">net time /setsntp:time.windows.com net stop w32time & net start w32time w32tm /resync /nowait</source>
[[Category: Silent Installers]]
[[Category: Changing Windows settings]]

Navigation menu