The NET CONFIG command is used to manage network resources.
The NET COMPUTER command is used to add or remove a computer from the domain.
Syntax NET CONFIG SERVER [/AUTODISCONNECT:number] [SVRCOMMENT:"text"] [/HIDDEN {YES | NO}] NET CONFIG RDR (undocumented option to display domain connection) NET COMPUTER \\computername /ADD NET COMPUTER \\computername /DEL Key number The number of minutes to wait before the server disconnects a mapped network drive. A number between 0 and 65535. Enter -1 to disable the autodisconnect feature. Default = 15. text A comment to be displayed in My Computer (detail view). Before using the /Srvcomment option read Q128167. The server comment can be edited without disabling auto-tuning using the Control Panel ➞ Server ➞ Description or Server Manager.
To add a computer to the domain:
NET COMPUTER \\ComputerName /ADD
This command is only available from a Server and is best run from the Primary Domain Controller (PDC).
Remove a computer from the domain:
NET COMPUTER \\ComputerName /DEL
This command is only available from the Server and is best run from the Primary Domain Controller (PDC)
Display the domain and other connection information for a computer:
NET CONFIG RDR
Change the idle session timeout (default = 15 minutes):
NET CONFIG SERVER /Autodisconnect:mm
Before using the /Autodisconnect option see Q128167
To disable idle timeouts altogether:
NET CONFIG SERVER /Autodisconnect:-1
Note this can reduce overall performance - see related KB articles below.
To hide a machine from Network Neighbourhood, by not sending announcements to domain browsers you will reduce NETBIOS network traffic, (if still enabled):
NET CONFIG SERVER /hidden:yes
Before using the /hidden option see Q128167
Change the comment displayed in My Computer (detail view).
Before using the /Srvcomment option see Q128167
NET CONFIG SERVER /Srvcomment:"YourText"
Display or change the Workstation Service communication device settings:
NET CONFIG WORKSTATION /?
Display statistics, (these commands work on both servers and workstations):
NET STATISTICS WORKSTATION
This can be abbreviated to NET STATS WORK
NET STATISTICS SERVER
This can be abbreviated to NET STATS SVR and includes information on system uptime (statistics since..)
“The elimination of net neutrality in the United States means further concentration, centralization, and control over the entire Internet by monopolistic service providers” ~ John Bellamy Foster
NET.exe - Manage network resources.
MODE - Configure a system device.
SC - Service Control.
Q555737 - How to find system uptime.
Q138365 - Autodisconnect (Red cross).
Equivalent bash command (Linux): uname - Print system information.