Is there any way to use NTP without using the NET command? The situation is
that for security purposes the NET command is locked down and will not run
on end users PC's. In this case it would be great to be able to eliminate
the NET command and go straight to using NTP. Would the following work?

<package
        id="time"
        name="Time Synchronization"
        revision="1"
        reboot="false"
        priority="100"
        notify="false"
        execute="once">

<install cmd='%COMSPEC% /c w32tm /config /update
/manualpeerlist:"ourntpserver,0x8 0.pool.ntp.org,0x2 1.pool.ntp.org,0x2"
/syncfromflags:MANUAL' />

<upgrade cmd='%COMSPEC% /c w32tm /config /update
/manualpeerlist:"ourntpserver,0x8 0.pool.ntp.org,0x2 1.pool.ntp.org,0x2"
/syncfromflags:MANUAL' />

</package>

<upgrade cmd='net time \\yourntpserver /set /yes' />
<install cmd='net time \\yourntpserver /set /yes' />

The first line using COMSPEC is missing the beginning % symbol and is that
a mistake or by design? In this case I added it. Also, the word
Synchronization is misspelled. Is that by design or another whoops?

-------------------------------------------------------------------------
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