Net_(command)

net (command)

In computing, net is a command in IBM OS/2 (including eComStation and ArcaOS), Microsoft Windows, ReactOS and Greentea OS used to manage and configure the operating system from the command-line. It is also part of the IBM PC Network Program for DOS.[1]

Quick Facts Developer(s), Initial release ...
The Windows CE 3.0 net command

Overview

The command is primarily used to manage network resources.[2] It is an external command implemented as net.exe.[3] When used in a batch file, the /Y or /N switches can be used to unconditionally answer Yes or No to questions returned by the command.[2] The net command has several sub-commands that can differ from one implementation or operating system version to another.

On Windows CE .NET 4.2,[4] Windows CE 5.0[5] and Windows Embedded CE 6.0,[6] it is available as an external command stored in \Windows\net.exe. This version only supports the use and view sub-commands.

More information Name, Description ...

Example

The net use command has several network-related functions.

Connecting network drive and printer

net use can control mounting ("mapping" in Microsoft terminology) drive shares and connecting shared printers in a network environment. This command makes use of the SMB (server message block) and the NetBIOS protocol on port 139 or 445. The basic Windows XP configuration enables this functionality by default. Thus users can connect to and disconnect from shared resources such as computers, printers and drives.

net use can display a list of network-connection information on shared resources.

Null session connections

net use also connects to the IPC$ (interprocess communication share). This is the so-called null session connection, which allows unauthenticated users. The basic syntax for connecting anonymously is:

net use \\IP address\IPC$ "" /u:""

For example, typing at the command prompt:

net use \\192.168.1.101\IPC$ "" /u:""

attempts to connect to the share IPC$ of the network 192.168.1.101 as an anonymous user with blank password. If successfully connected to the target machine, a lot of information can be gathered such as shares, users, groups, registry keys and more. This would provide a hacker with a lot of information about a remote user. This has changed in Windows NT 4.0 SP6 already. In Windows 2000 "null session connections" could have been enabled after changes of the system-configuration.

Similar commands in other OSes

See also


References

  1. "net (Windows CE .NET 4.2)". docs.microsoft.com.
  2. "net (Windows CE 5.0)". docs.microsoft.com.
  3. "Reactos/Reactos". GitHub. 3 November 2021.
  4. "Reactos/Reactos". GitHub. 3 November 2021.
  5. "Reactos/Reactos". GitHub. 3 November 2021.
  6. "Reactos/Reactos". GitHub. 3 November 2021.
  7. "Reactos/Reactos". GitHub. 3 November 2021.
  8. "Reactos/Reactos". GitHub. 3 November 2021.
  9. "Reactos/Reactos". GitHub. 3 November 2021.
  10. "Reactos/Reactos". GitHub. 3 November 2021.
  11. "Reactos/Reactos". GitHub. 3 November 2021.
  12. "Reactos/Reactos". GitHub. 3 November 2021.
  13. "Net print". 3 February 2023.
  14. "Reactos/Reactos". GitHub. 3 November 2021.
  15. "Reactos/Reactos". GitHub. 3 November 2021.
  16. "Reactos/Reactos". GitHub. 3 November 2021.
  17. "Reactos/Reactos". GitHub. 3 November 2021.
  18. "Reactos/Reactos". GitHub. 3 November 2021.
  19. "Reactos/Reactos". GitHub. 3 November 2021.

Further reading


Share this article:

This article uses material from the Wikipedia article Net_(command), and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.