Microsoft KB Archive/317478

= How To Prevent IIS from Accepting Anonymous Requests During Installation in Windows 2000 =

Article ID: 317478

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.0, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q317478



IN THIS TASK
SUMMARY
 * Introduction
 * Disable Anonymous Access on the Default Web Site



SUMMARY
This step-by-step article describes how to install Windows 2000 and Internet Information Services (IIS) version 5.0 from a network share without leaving the server vulnerable until you can install service packs and fixes.

NOTE: This procedure works only if you install IIS from a network share. It does not work if you perform the installation directly from the Windows 2000 CD.

back to the top

Introduction
When you install Windows 2000 and IIS 5.0 across a network, you may need to prevent IIS from serving anonymous requests until you have installed a service pack or fix. To do this, you must disable anonymous access on the default Web site during installation by modifying the Iis.inf file before you run the setup file. When you do this, the server is less likely to be compromised before it can be patched.

back to the top

Disable Anonymous Access on the Default Web Site
 Open a command prompt and browse to the i386 folder of the shared Windows 2000 installation.  Run the following command to expand the Iis.inf file: expand.exe iis.in_ iis.inf  After the file is expanded, delete the Iis.in_ file.

NOTE: Do not delete the expanded Iis.inf file. Open the Iis.inf file in Notepad or any other text editor. In the [WWW_REG] section of the Iis.inf file, locate the following line:

1 0 HKLM System\CurrentControlSet\Services\W3SVC\Parameters Authorization LM/W3SVC 6000 0x1 2 1 4 0x5

 Change the last parameter (0x5) of the line to 0x4. This configures the server so that only Windows Integrated Authentication (NTLM) is enabled on the server. The line should now resemble the following:

1 0 HKLM System\CurrentControlSet\Services\W3SVC\Parameters Authorization LM/W3SVC 6000 0x1 2 1 4 0x4

Other options for this parameter are as follows:

 0x0 = No authentication (all access denied)</li> 0x2 = Basic authentication only</li> 0x6 = Basic and Windows Integrated (NTLM) authentication</li> 0x16 = Digest authentication only</li> 0x18 = Basic and Digest authentication</li> 0x20 = Windows Integrated (NTLM) and Digest authentication</li></ul> </li> After you have made the changes, save and close the file. Now, when you install Windows 2000 from this share, these changes are applied when IIS is configured during the installation process.</li> Install IIS and all necessary service packs and fixes.</li> Enable Anonymous authentication by using one of the following methods: <ul>  From a command prompt on the server, run the following command: C:\inetpub\adminscripts\cscript.exe adsutil.vbs set w3svc/AuthAnonymous True </li> Use the IIS Management Console. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In the IIS Management Console, right-click the Computer node and then click Properties.</li> Select WWW Service and then click Edit.</li> On the Directory Services tab, click Edit under Anonymous access and authentication control.</li></ol> </li></ul> </li></ol>

back to the top

Additional query words: iis 5 secure install

Keywords: kbhowto kbhowtomaster KB317478

-

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

© Microsoft Corporation. All rights reserved.