Difference between revisions of "Time synchronization"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 18: Line 18:
 
If you're using [[WPKG Client]], it's a good idea to put just <code>net time \\timeserver /set /yes</code> in a "pre" script.
 
If you're using [[WPKG Client]], it's a good idea to put just <code>net time \\timeserver /set /yes</code> in a "pre" script.
  
This command succeeds even if your date is off by a lot(unlike normal NTP).
+
This command succeeds and works even if your date is off by a lot(unlike normal NTP).
  
 
[[Category: Silent Installers]]
 
[[Category: Silent Installers]]
 
[[Category: Changing Windows settings]]
 
[[Category: Changing Windows settings]]

Revision as of 17:01, 17 May 2009

This one synchronizes time on a Windows workstation against some other Windows machine (i.e., domain controller etc.).

<package
        id="time"
        name="Time Synchonization"
        revision="1"
        reboot="false"
        priority="100"
        notify="false"
        execute="always">
 
        <install cmd="net time \\timeserver /set /yes" />
 
</package>

If you're using WPKG Client, it's a good idea to put just net time \\timeserver /set /yes in a "pre" script.

This command succeeds and works even if your date is off by a lot(unlike normal NTP).