NTP Client configuration for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

13 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="ntp"
name="Synchronisation de la date et de l'heure"
revision="1"
priority="10"
reboot="false"
execute="once">
<variable name="NTP_SERVER" value="%IPASSERELLE_NAME%.%IPASSERELLE_DOMAIN% 0.pool.ntp.org" />
<install cmd='%COMSPEC% /c sc config w32time start= auto' />
<install cmd='%COMSPEC% /c sc start w32time'>
<exit code="any" />
</install>
<install cmd='%COMSPEC% /c w32tm /config /update /syncfromflags:manual /manualpeerlist:"%NTP_SERVER%"' />
<install cmd='%COMSPEC% /c w32tm /resync /nowait' />
<upgrade include="install" />
<downgrade include="install" />
<remove cmd='%COMSPEC% /c w32tm /config /update /syncfromflags:manual /manualpeerlist:time.windows.com' />
<remove cmd='%COMSPEC% /c net stop w32time &amp; net start w32time' />
<remove cmd='%COMSPEC% /c w32tm /resync /nowait' />
</package>
</packages>