Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 326
نمايش فراداده

net config server

Control settings for the Server service.

Syntax

net config server [/autodisconnect:minutes] [/srvcomment:"text"] 
[/hidden:{yes | no}]

Options

None

Shows current settings.

/autodisconnect:minutes

Sets the maximum idle time before disconnecting user sessions. (The default is 15, and the allowed range is 1-65,535.) Specify -1 to never disconnect a user.

/srvcomment:"text"

Displays the comment when the net view command is used (up to 48 characters). Be sure to use the quotes.

/hidden:[yes | no]

Hides the server name from the net view command. (The default is no.)

Examples

Display the configuration of the Server service on the local machine:

net config server
Server Name                       \\TEST
Server Comment                    Hello
Software version                  WS2003
Server is active on
NetBT_Tcpip_{54414D01-02DA-4783-B931-C9AC7A70EDDD} 
(0000b4a04774)
NetBT_Tcpip_{54414D01-02DA-4783-B931-C9AC7A70EDDD} 
(0000b4a04774)
NetbiosSmb (000000000000)
NetbiosSmb (000000000000)
Nbf_{54414D01-02DA-4783-B931-C9AC7A70EDDD} 
(0000b4a04774)
Nbf_NdisWanNbfOut{0D374F9E-C395-4C81-BDFA-
FC1503D82B34} (f46f20524153)
Nbf_NdisWanNbfIn{AEDAF533-9187-477C-BDF7-
07B657D13D4F} (f25920524153)
NwlnkNb (0000b4a04774)
Nbf_NdisWanNbfOut{0EC56659-6FD4-4E8A-BF83-
146D25681D8B} (f6f420524153)
Nbf_NdisWanNbfIn{160A090E-ACA6-4D63-95E3-
6E111EB3A6D4} (f2e620524153)
Nbf_NdisWanNbfOut{033CCCCB-D120-4913-A25F-
3DD13FE9E915} (f46f20524153)
NwlnkIpx (000000000001)
Server hidden                         No
Maximum Logged On Users               Unlimited
Maximum open files per session        16384
Idle session time (min)               15
The command completed successfully.

Table 5-6 shows the fields displayed.

Table 5-6. Displayed in net config server command output

Field

Description

Server name

UNC name of server

Server comment

"Text" value specified

Software version

WS2003

Server is active on

Protocols bound to service

Server hidden

Yes or no

Maximum logged-on users

Unlimited

Maximum open files per session

16,384

Idle session time (minutes)

15 minutes by default

Disconnect user sessions after five minutes of inactivity:

net config server /autodisconnect:5
The command completed successfully.

Notes

  • Changes made using this command take effect immediately and are permanent.

  • It's better to modify Server service parameters by editing the registry directly instead of using this command with any of its three switches. The reason is that using this command permanently saves the current settings of the Server service to the registry and disables autotuning of the Server service. Autotuning is a mechanism by which WS2003 tries to maintain optimum performance for the Server service. For example, if you add more memory to your server after running net config server /autodisconnect:5, the result is that WS2003 will be unable to automatically configure itself to make best use of the additional memory. Note, however, that using net config server without any additional parameters doesn't have this negative effect. To learn how to undo this problem should it occur, see Knowledge Base article 128167.

  • To configure the Workstation service, use net config workstation.

See Also

net config, net config workstation