NET.exe

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

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

Display the time at this computer plus the DATE in US Format:
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

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

Related:

NET - Manage network resources.
W32TM - Configure the Windows Time Service.
PRNCNFG - configure or rename a printer.
PRNJOBS - Pause, resume, cancel, or list print jobs.
PRNMNGR - Add, delete, list printers and printer connections.
VB Script: Add printer connection
VB Script: List printers
VB Script: Set default printer
Equivalent bash command (Linux): lpc - Line printer control program


Copyright © SS64.com 1999-2017
Some rights reserved