Microsoft KB Archive/314498

= Server Service Configuration and Tuning =

Article ID: 314498

Article Last Modified on 12/1/2007

-

APPLIES TO


 * Microsoft Windows XP Professional
 * Microsoft Windows XP Professional x64 Edition
 * Microsoft Windows XP Home Edition

-



This article was previously published under Q314498



For a Microsoft Windows 2000 version of this article, see 128167.

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
This article explains how to configure and tune the Server service.



MORE INFORMATION
Although the Server service is self-tuning, you can also configure the Server service manually from Control Panel. Normally, the server configuration parameters are auto-configured (calculated and set) each time that you start Windows. However, if you run the net config server command in conjunction with the /autodisconnect, /srvcomment, or /hidden switches, the current values for the automatically tuned parameters are displayed and written to the registry.

If you add or remove system memory, or change the server size setting (minimize, balance, or maximize), Windows does not automatically tune the Server service for your new configuration. For example, if you run the net config srv /srvcomment command, and then add more memory to the computer, Windows does not increase the calculated value of automatically tuned entries.

Typing net config server at the command prompt without additional parameters leaves automatic tuning intact while displaying useful configuration information about the server.

Restore the LAN Manager Server Parameters to Their Defaults
To restore the LAN Manager Server parameters to their defaults, or to reconfigure Windows so that it automatically configures the Server service, follow these steps. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

 Click Start, and then click Run. In the Open box, type regedit, and then click OK. Expand the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters

 On the File menu, click Export. In the File name box, type lanmanserver backup, and then click Save. In the right pane of the Registry Editor window, delete all entries except for the following:

EnableSharedNetDrives

Lmannounce

NullSessionPipes

NullSessionShares

Size

NOTE: You may have other entries here that are statically coded. Do not remove these entries.</li> To delete an item, right-click it, and then click Delete on the shortcut menu that appears. Click Yes when prompted to confirm the deletion.</li> Quit Registry Editor, and then restart Windows.</li></ol>

Use Information Levels
The Server service supports information levels that let you set each parameter individually. For example, the net config srv /hidden command uses information level 1016 to set just the hidden parameter. However, Net.exe queries and sets information levels 102 (hidden, comment, users, and disc parameters) and 502. As a result, all parameters in the information level get permanently set in the Registry. Srvmgr.exe and the Control Panel Server query and set only level 102 (not level 502) when you change the server comment.

Hide Windows-based Computers or Change the Autodisconnect Value
If you want to hide Windows-based computers from the browse list or change the autodisconnect value, make those specific changes with Regedt32.exe instead of the command-line equivalents discussed earlier in this article. You must be an administrator to make these changes. To edit the server comment, use the description field of the Server tool in Control Panel, or use Server Manager.

For additional information about the Server service, click the article number below to view the article in the Microsoft Knowledge Base:

102967 REG: Server Service Entries, PART 1

102969 REG: Server Service Entries, PART 2

Additional query words: auto configure tune tuned tuning kbnetwork ntnetservAdded NET CONFIG SERVER

Keywords: kbinfo KB314498

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.