3,217
edits
Changes
m
<source lang="xml"><package id="ntp-client" name="NTP time synchronization" revision="1" priority="999" reboot="false" execute="once">
</package></source>
<source lang="xml"><package
</package></source>
<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>
<source lang="dos">net time /setsntp:time.windows.com net stop w32time & net start w32time w32tm /resync /nowait</source>
no edit summary
How to enable or disable NTP client on Windows.
<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' />
or:
id="ntp-client"
name="ntp client configuration"
<upgrade cmd="%SOFTWARE%\ntp\install.bat" />
<remove cmd="%SOFTWARE%\ntp\uninstall.bat" />
install.bat:
uninstall.bat:
[[Category: Silent Installers]]
[[Category: Changing Windows settings]]