Sets the system clock to the date and time referenced by a specific Internet time server (a dedicated time server that distributes accurate time) or sets the system clock to the date and time specified. Often used to set the system date and time to an accurate value. Also a practical way to synchronize the date and time in a multi-computer environment.
To set System Time properties
In the Available Actions pane, open the Network folder and double-click the System Time action or drag it into the Steps pane.
Set General properties in one of the following ways:
To synchronize using the default internet time server, you do not need to change any properties.
To use a specific time server, select the Use a specific time server check box and then select or enter the host name or IP address in the Time server box. If necessary, change the port number. The default port is 123, but if that port is unavailable, you may need to enter an alternate port.
To specify a particular date and time, select the Set to a specified date and time check box. Then enter or select the date and time in the boxes below, or click Expression and enter the date and time in the expression that appears in the box.
You can also click Custom to create the expression or click the percent sign (%) and use the Expression builder.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
Click OK to save settings.
Declaration
<AMSETSYSTEMTIME SERVER="text (server name)" />
- or-
<AMSETSYSTEMTIME SETTIME="Date/Time" />
Example 1 - Use specific time server to set date and time.
<AMSETSYSTEMTIME SERVER="navobs2.usnogps.navy.mil" />
Example 2 - Set to a specific date and time.
<AMSETSYSTEMTIME SETTIME="%DateSerial(2010,12,25) + TimeSerial(00,00,00)%" />
See Also: Change Printer, Empty Recycle Bin, End Process, Get Process Information, Get Volume Information, Log Event, Print, Registry
Property |
Type |
Required |
Default |
Markup |
Description |
Set to Internet time server |
Text |
No |
(Empty) |
null |
Sets the date and time using the Internet time server. |
Use a specific time server |
Text |
No |
time.chu.nrc.ca |
SERVER="tick.ucla.edu" |
If enabled, provides a list of time servers to select from. The available options are:
|
Port |
Number |
No |
123 |
PORT="142" |
The Internet port to use. The default port is 123. |
Set to specific date and time |
Text |
No |
(Current) |
SETTIME="%DateSerial(2010,08,04) + TimeSerial(08,09,30)%" |
If enabled, allows you to set a specific date and time. |