Hi, Anthony!!
In my company we using two packages - for Computers in Windows Domain and for 
PC in Workgroups:

        <package id="TimeSyncinDomain" name="Sync System Time" reboot="false" 
priority="10000" notify="false" execute="once">
                <install cmd="w32tm /resync"/>
                <upgrade cmd="w32tm /resync"/>
                <remove cmd="cmd /c echo off"/>
        </package>

        <package id="TimeSyncExternal" name="Sync System Time" reboot="false" 
priority="10000" revision="20111031" >
                <check type="registry" condition="equals" 
path="HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer" 
value="0.ru.pool.ntp.org 1.ru.pool.ntp.org 2.ru.pool.ntp.org 
3.ru.pool.ntp.org"/>

                <install cmd="net time /setsntp:&quot;0.ru.pool.ntp.org 
1.ru.pool.ntp.org 2.ru.pool.ntp.org 3.ru.pool.ntp.org&quot;"/>
                <install cmd="net stop w32time"/>
                <install cmd="net start w32time"/>
                <install cmd="w32tm /resync"/>

                <upgrade cmd="net time /setsntp:&quot;0.ru.pool.ntp.org 
1.ru.pool.ntp.org 2.ru.pool.ntp.org 3.ru.pool.ntp.org&quot;"/>
                <upgrade cmd="net stop w32time"/>
                <upgrade cmd="net start w32time"/>
                <upgrade cmd="w32tm /resync"/>


                <remove cmd="cmd /c echo off"/>
        </package>

it's worked correctly.


With regards,
Alexey Dubovsky

-----Original Message-----
From: wpkg-users-boun...@lists.wpkg.org 
[mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Anthony Walters
Sent: Tuesday, December 20, 2011 2:23 PM
To: wpkg-users@lists.wpkg.org
Subject: [wpkg-users] NTP time synchronisation

Hi,

Does anyone else use WPKG to dish out NTP time configuration settings, and care 
to put your package up here? I want to get a configuration nailed down and am 
wondering if i have missed something.

Here's mine so far:

<package
         id="ntp-client"
         name="NTP time synchronization"
         revision="1"
         priority="999"
         reboot="false"
         execute="once">
         <install cmd='%COMSPEC% /c sc config w32time start= auto' />
         <install cmd='%COMSPEC% /c sc start w32time' />
         <install cmd='%COMSPEC% /c w32tm /config
/manualpeerlist:ntp.dkit.ie,0x09 /syncfromflags:MANUAL /update' />
         <remove cmd='%COMSPEC% /c w32tm /config
/manualpeerlist:time.windows.com,0x09 /syncfromflags:MANUAL /update' />
         <remove cmd='%COMSPEC% /c sc stop w32time' />
         <remove cmd='%COMSPEC% /c sc config w32time start= demand' /> 
</package>


Cheers
Anthony
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to