NET.exe CONFIG

The NET Command is used to manage network resources.

Syntax
    NET CONFIG SERVER [/AUTODISCONNECT:time] [SVRCOMMENT:"text"] [/HIDDEN {YES | NO}]

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

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 © SS64.com 1999-2019
Some rights reserved