Windows Server 2003 in a Nutshell

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

See Also

net config , net config workstation

Категории