[wpkg-users] NTP
Mark_Israel at nps.gov
Mark_Israel at nps.gov
Fri Oct 15 17:23:03 CEST 2010
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?
More information about the wpkg-users
mailing list