The NET TIME Command is used to manage Network Print jobs and Network Time.

Syntax

     NET TIME [\\ComputerName | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]

If neither a ComputerName or domain is given then time will (eventually) be returned from the current workgroup or domain.

The NET TIME command requires the 'server' service to be running on the machine that is serving the time.

Using the NET TIME command to configure or set a computer’s clock time when the Windows Time service is running will only work until the next time clock sync. i.e. you can use it to set an approximate date/time, which the time service will then correct.

Examples:

Display the time at this computer plus the DATE:

NET TIME \\%ComputerName%

Display the date and time from another computer:

NET TIME \\machinename

Display the date and time from the logonserver:

NET TIME %LOGONSERVER%

Display the time from the domain timeserver:

NET TIME /DOMAIN

Display the time from another domain:

NET TIME /DOMAIN:domainname

Synchronise the computer’s clock with that of the domain:

NET TIME /DOMAIN /SET /Y

Synchronise the computer’s clock with a different domain:

NET TIME /DOMAIN:domainname /SET

Synchronise the computer’s clock with that of another computer (see the w32tm command):

NET TIME \\servername /SET /YES

Synchronise the computer’s clock with a time server in a different domain:

NET TIME /RTSDOMAIN:domainname /SET