NET.exe

The NET Command is used to manage Network Print jobs and Network Time as follows:

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

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

Define the time server for your domain
NET TIME /setsntp:ServerName.DomainName.com

List the time server(s) for your domain
NET TIME /querysntp

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
NET TIME \\servername /SET /YES
Also see the "w32tm" command

Synchronise the computer's clock with a time server in a different domain.
NET TIME /RTSDOMAIN:domainname /SET

Related:

NET - Manage network resources.
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-2014
Some rights reserved