Tuesday 16 August 2011

NET Command

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS>net /?
The syntax of this command is:


NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]



C:\WINDOWS>


NET ACCOUNTS updates the user accounts database and modifies password and logon requirements for all accounts. When used without options, NET ACCOUNTS displays the current settings for password, logon limitations, and domain information.
Two conditions are required in order for options used with NET ACCOUNTS to take effect:
1. The password and logon requirements are only effective if user accounts have been set up (use User Manager or the NET USER command).
2. The Net Logon service must be running on all servers in the domain that verify logon. Net Logon is started automatically when Windows starts.

NET COMPUTER adds or deletes computers from a domain database. This command is available only on Windows NT Servers.

NET CONFIG displays configuration information of the Workstation or Server service. When used without the SERVER or WORKSTATION switch, it displays a list of configurable services. To get help with configuring a service, type NET HELP CONFIG service.

NET FILE closes a shared file and removes file locks. When used without options, it lists the open files on a server. The listing includes the identification number assigned to an open file, the pathname of the file, the username, and the number of locks on the file.
This command works only on computers running the Server service.

NET GROUP adds, displays, or modifies global groups on servers. Used without parameters, it displays the groupnames on the server.

NET HELPMSG displays information about Windows network messages (such as error, warning, and alert messages). When you type NET HELPMSG and the 4-digit number of the Windows error (for example, NET2182), Windows tells you about the message and suggests action you can take to solve a problem.

NET LOCALGROUP modifies local groups on computers. When used without options, it displays the local groups on the computer.

NET NAME adds or deletes a messaging name (alias) at a computer. A messaging name is a name to which messages are sent. When used without options, NET NAME displays the names accepting messages at the computer.
A computer's list of names comes from three places:
1. Message names, which are added with NET NAME
2. A computername, which is added as a name when the Workstation service is started. This name cannot be deleted.
3. A username, which is added as a name when you log on, if it is not being used at another computer. This name can be deleted.

NET START starts specified service or lists running services if used without paramerts.
When typed at the command prompt, service names of two words or more must be enclosed in quotation marks. For example, NET START "NET LOGON" starts the net logon service.

NET STOP stops Windows services. Stopping a service cancels any network connections the service is using. Also, some services are dependent on others. Stopping one service can stop others.
Some services cannot be stopped.

NET PAUSE suspends a Windows service or resource. Pausing a service puts it on hold.

NET CONTINUE reactivates a Windows service that has been suspended by NET PAUSE.

NET PRINT displays print jobs and shared queues. For each queue, the display lists jobs, showing the size and status of each job, and the status of the queue.

NET SEND Sends messages to other users, computers, or messaging names on the network. The Messenger service must be running to receive messages.
You can send a message only to a name that is active on the network. If the message is sent to a username, that user must be logged on and running the Messenger service to receive the message.

NET SESSION lists or disconnects sessions between the computer and other computers on the network. When used without options, it displays information about all sessions with the computer of current focus.
This command works only on servers.

NET SHARE makes a server's resources available to network users. When used without options, it lists information about all resources being shared on the computer. For each resource, Windows reports the devicename(s) or pathname(s) and a descriptive comment associated with it.

NET STATISTICS displays the statistics log for the local Workstation or Server service. Used without parameters, NET STATISTICS displays the services for which statistics are available.
SERVER - Displays the Server service statistics.
WORKSTATION - Displays the Workstation service statistics.

NET TIME synchronizes the computer's clock with that of another computer or domain, or displays the time for a computer or domain. When used without options on a Windows Server domain, it displays the current date and time at the computer designated as the time server for the domain. This command allows setting the NTP timeserver for computername.

NET USE connects a computer to a shared resource or disconnects a computer from a shared resource. When used without options, it lists the computer's connections.

NET USER creates and modifies user accounts on computers. When used without switches, it lists the user accounts for the computer. The user account information is stored in the user accounts database.
This command works only on servers.

NET VIEW displays a list of resources being shared on a computer. When used without options, it displays a list of computers in the current domain or network.

NET HELP command or NET command /HELP
Commands available are:

NET ACCOUNTSNET HELPNET SHARE
NET COMPUTERNET HELPMSGNET START
NET CONFIGNET LOCALGROUPNET STATISTICS
NET CONFIG SERVERNET NAMENET STOP
NET CONFIG WORKSTATIONNET PAUSENET TIME
NET CONTINUENET PRINTNET USE
NET FILENET SENDNET USER
NET GROUPNET SESSIONNET VIEW

NET HELP SERVICES - lists some of the services you can start.
NET HELP SYNTAX - explains how to read NET HELP syntax lines.
NET HELP command | MORE - displays Help one screen at a time.


No comments: