NET CONFIG

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:time] [SVRCOMMENT:"text"] [/HIDDEN {YES | NO}]

    NET CONFIG RDR    (undocumented option to display domain connection)

    NET COMPUTER \\computername /ADD

    NET COMPUTER \\computername /DEL

Examples

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)

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)

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

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)
NET CONFIG SERVER /Srvcomment:"YourText"
Before using the /Srvcomment option see Q128167

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

Related:

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.


 
Copyright © 1999-2021 SS64.com
Some rights reserved