1. NET - 2. Hostname - 3. IPConfig - 4. Ping - 5. ARP - 6. Tracert - 7. Route - 8. Netstat
I resumed here the networks under DOS commands. The majority are usable from DOS included in Windows 95 and following, or even no longer exist from Windows 2000.
For the pure DOS, a manager network file must first be installed in the config.sys, for example device=c:\reseau\network.sys. It comes with the network adapter. Other drivers are required at the client level (for Novell for example) and at the protocol level.
The folder that contains the driver for the adapter is usually name_driver.dos. It is accompanied by 2 ini files for the specific setting: oemsetup.inf and protocol.ini. The global setting is most often done by a small executable file on the floppy disk.
Example of drivers to install in the config.sys for a RTL8139
DEVICE = C:\LANMAN.DOS\DRIVERS\PROTMAN\PROTMAN.DOS I:C:\LANMAN.DOS
DEVICE = C:\LANMAN.DOS\DRIVERS\ETHERNET\RTL8139\RTSND.DOS
The NET command is an external command. It is recognized (I think) from the DOS 5.0 version and allows to manage the network.
NET USE uses NetBios and allows you to connect or disconnect a network under DOS drive. The connection is also effective on Windows (current versions). I see only compatible with all orders more than current versions.
NET USE [lecteur: | *] [\\computer\directory [password | ?]]
The command also allows to share printers. NET USE port \\computer\printer_name [password] to assign a port to a network printer. Example:
|
This command allows to send messages via the network. It's possible on XP, no more on Windows 7.
or NET SEND * message sends the message to all users. Example: NET Send * Hello from the network
|
This command can be used to instruct all users to disconnect from a server for example.
Without option, the Net View command to view the computers on the network.
If the computer name is mentioned as an option, the shared resources on this computer are displayed. In the example below, the PC sharing 4 files and a printer. L: letter indicates that the folder is also configured as network drive in computer.
NET View /domain: domain_name to display the computers in a particular domain.
These commands are equivalent to that of the users and passwords in Control Panel of Windows. This command requires Administrator status in some cases (fortunately).
NET user: displays network users of a computer, not the users connected to this computer through the network. |
NET user user_1: displays the user's connection settings of user_1 |
NET user user_1 password: change the password of the user_1 |
NET user user_1/delete: removes the mentioned user. On Windows, the user running the command must be a local administrator. |
These 2 commands to start or stop services networks. The service must be explicitly designated.
NET START (service) starts the network services (and others), cannot run in a window in Win3.0 -
3.11.
Various options are available and differ depending on the version of the used DOS (including Windows) for a selective startup. You can also start a single example service: NET START DHCP. |
NET Stop (service) to stop running services. Here also the option change with versions. Example Net stop dhcp stops the DHCP server. |
This commands are also available in Windows for service
NET config workstation: displays the properties of connection of the station Where the command is executed. It's function is generally unnecessary. |
NET config server: displays the properties of the server or station connection depending on the option selected. It's function is generally useless. |
This function is generally unnecessary, except to check the workgroup or the domain name (with the Workstation option). Available on all Windows versions.
NET session: displays the connections on a computer, including other computers. |
NET config server: displays the properties of the server or station connection depending on the option selected. It's function is generally useless. |
In the example below, the computer on which the command is is under Windows 2000 with as 2000 user. The address 127.0.0.1 is the local address. Another computer on NT 4.0 (actually under Windows 98) whose name is L7S5L8 is connected with the user name "Bureau" (without activity for 50 minutes).
NET DIAGNOSTICS [/ names | / status] allows to run tests of connection hardware diagnostics. / names to specify a server/status, a simple computer. This function no longer exists since Windows 2000 and higher. |
hostname displays the computer's network (Netbios) name. |