Home NT Commands
NT Syntax

NET.exe

The NET Command is used to manage network resources as follows:

Managing Network configuration

To add a computer to the domain
NET COMPUTER \\ComputerName /ADD
This command is only available from the Server and is best run from the Primary Domain Controller (PDC)

To 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)

Change the idle session timeout (default = 15 minutes)
NET CONFIG SERVER /Autodisconnect:mm

To disable idle timeouts altogether
NET CONFIG SERVER /Autodisconnect:-1
Note this may reduce overall performance - see related KBase articles below.

To remove a machine from Network Neighbourhood
NET CONFIG SERVER /hidden:yes
Before using the /hidden option see Q128167

Change the comment displayed in My Computer (detail view)
NET CONFIG SERVER /Srvcomment:"YourText"

Display or change the Workstation Service communication device settings
NET CONFIG WORKSTATION /?

Display statistics for the local Workstation service
NET STATISTICS WORKSTATION

Display statistics for the local Server service
NET STATISTICS SERVER

Related:

MODE - Configure a system device
SC - Service Control
Q138365 - Autodisconnect (Red cross)
Q305355 - Drive disconnected, and a red "X" appears

Equivalent Linux BASH commands:

hostname - Print or set system name
id - Print user and group id's
tty - Print filename of terminal on stdin
uname - Print system information



Simon Sheppard
SS64.com