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 remove a machine from Network Neighbourhood
NET CONFIG SERVER /hidden:yes
Before using the /hidden option see Q128167 - you may prefer to edit the registry directly:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

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 commands:

MODE - Configure a system device
SC - Service Control

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


Back to the Top

Simon Sheppard
SS64.com