net | |
Developer: | Microsoft, IBM, ReactOS Contributors, Greentea OS Contributors |
Operating System: | MS-Net, DOS, OS/2, Windows, ReactOS, eComStation, ArcaOS, Greentea OS |
Platform: | Cross-platform |
Genre: | Command |
License: | MS-Net, OS/2, Windows, eComStation, ArcaOS: Proprietary commercial software ReactOS: GNU General Public License Greentea OS: GNU Lesser General Public License |
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]
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. 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 . This version only supports the use and view sub-commands.
Name | Description | DOS support | OS/2 support | Windows support | ReactOS support | Remarks |
---|---|---|---|---|---|---|
access | Manage access | [7] | ||||
accounts | Change Netlogon service role and manage maximum user logon time, password expiration time and other account settings | [8] [9] | [10] | |||
admin | Run administrative command on a remote server | |||||
alias | Manage aliases currently defined in the domain | |||||
app | Manage information about application definitions | |||||
appparm | OS/2 Warp 4.5 and later only | |||||
audit | List and clear contents of the network audit log of the server | |||||
comm | List information about queues for shared serial devices | |||||
computer | Add or delete computer from domain database | [11] [12] | [13] | |||
config | Display NetBIOS configuration information | [14] | ||||
continue | Continue paused services | [15] | ||||
copy | Copy and append files locally and remotely | |||||
dasd | Manage and display directory limits | |||||
device | List statuses of shared serial devices and stop current use of a device | |||||
diag | Run the Microsoft Network Diagnostic program | |||||
error | List and clear network error log | |||||
file | List files opened by remote computers | [16] | ||||
forward | Route incoming messages and cancel forwarding | |||||
group | Add, display, or modify global groups in domains | [17] [18] | [19] | |||
help | Display syntax | [20] | ||||
helpmsg | Display information on error messages | [21] | ||||
init | ||||||
localgroup | Add, display, or modify local groups | [22] [23] | [24] | |||
log | Start/stop saving messages to a file/printer and display information about forwarding the current message log | |||||
logoff | ||||||
logon | ||||||
move | Move files locally and remotely | |||||
name | List or manage NetBIOS names | |||||
password | Change passwords on a server or in a domain | |||||
pause | Pause services | [25] | ||||
Display printer queue information or print job information, or control print jobs | [26] [27] [28] | Deprecated in Windows 7 and Windows Server 2008 R2 | ||||
riplmach | OS/2 Warp 4.5 and later only | |||||
riplmclas | OS/2 Warp 4.5 and later only | |||||
run | ||||||
send | Send messages to other users or computers | |||||
separator | Control whether or not a separator page is printed at the beginning of a print file | |||||
session | Manage server computer connections | [29] [30] | ||||
share | Manage shared resources | [31] [32] | [33] | |||
start | Start services | [34] | ||||
statistics | Display and clear list of usage statistics for a workstation | [35] | ||||
status | List information about current network shares and server definition settings | |||||
stop | Stop services | [36] | ||||
time | Display remote computer's current time or sync time with remote computer | |||||
use | Connect/disconnect computer to/from shared resources, or display information about computer connections | [37] [38] | [39] | |||
user | Add or modify user accounts, or display user account information | [40] [41] | [42] | |||
ver | Display information about workgroup redirector | |||||
view | Display list of domains, computers, or resources shared by specified computers | [43] [44] | ||||
who | List uses who are logged on current or remote domains, display user logon information, and list users with sessions to a specific server | |||||
The net use
command has several network-related functions.
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.
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: