[wpkg-users] Synchronize with Timeserver
Chris Mortimer
cm214 at cam.ac.uk
Wed Jun 29 13:48:13 CEST 2011
Hello,
For info, I use the following for my Win7 clients:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="ntp-client" name="NTP time synchronization" revision="1.0"
priority="99" reboot="false" execute="once">
<install cmd='cmd /c sc config w32time start= auto' />
<install cmd='%COMSPEC% /c w32tm /config /update
/manualpeerlist:"ntp01.xxx.xxx.xxx ntp02.xxx.xxx.xxx ntp03.xxx.xxx.xxx
ntp04.xxx.xxx.xxx" /syncfromflags:MANUAL' />
<install cmd='cmd /c net stop w32time & net start w32time' />
<install cmd='cmd /c w32tm /resync /nowait' />
<remove cmd='%COMSPEC% /c w32tm /config /update
/manualpeerlist:"time.windows.com" /syncfromflags:MANUAL' />
<remove cmd='cmd /c net stop w32time & net start w32time' />
<remove cmd='cmd /c w32tm /resync /nowait' />
</package>
</packages>
Chris Mortimer - Computer Officer
Dept of Applied Mathematics, CMS
University of Cambridge. CB3 0WA. UK.
On 29/06/2011 12:00, simplesi wrote:
>
>
>
> Marco Gaiarin wrote:
>>
>> I use the same command, but on pre/post WPKGClient scripts, and works
>> flawlessy...
>
> I'm getting the same problem as the OP.
> I'm just trying out my old scripts on a Win7 pro machine and this is one of
> the problems - I get:-
>
> Exit code returned non-successful value (2) on command 'net time \\server2
> /set
> /yes'.
>
> I'm just running wpkg from a shortcut to a .bat file(run as admin ticked in
> advanced properties) in all users startup folder.
>
> User is administrator.
>
> regards
>
> Simon
More information about the wpkg-users
mailing list