NT Syntax

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

Synchronise the computer's clock with that of the domain.
NET TIME /DOMAIN /SET

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
Under Windows 2000 - you can also use the "w32tm" command

Display the job# of current print jobs
NET PRINT \\ComputerName\ShareName

Hold a print job waiting in the printer queue
NET PRINT [\\ComputerName] job# /HOLD

Release a print job that has been held.
NET PRINT [\\ComputerName] job# /RELEASE

Delete a print job from a printer queue.
NET PRINT [\\ComputerName] job# /DELETE


Related commands:

CON2PRT
- Connect or disconnect a Printer

Equivalent Linux BASH commands:




Simon Sheppard
SS64.com