FIX: You cannot suppress the default FTP banner for the FTP service

Symptoms

When you connect to the File Transfer Protocol (FTP) service that is running on your Microsoft Internet Information Services (IIS) server, the FTP service always responds with the following default FTP banner:
220 Microsoft FTP Service
As an administrator of the FTP server, you may not want the FTP service to respond with the name of the service.

Resolution

Microsoft Windows 2000 (IIS 5.0)

Service pack information

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 How to obtain the latest Windows 2000 service pack

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
Prerequisites
Windows 2000 Service Pack 4 (SP4) must be installed on your computer before you install this hotfix.
Restart requirement
You must restart your computer after you apply this hotfix.
Hotfix replacement information
This hotfix does not replace any other hotfixes.
File information
The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date Time Version Size File name
--------------------------------------------------------
10-Jan-2004 01:18 5.0.2195.6890 248,080 Adsiis.dll
10-Jan-2004 01:18 5.0.2195.6890 118,554 Ftpsvc2.dll
10-Jan-2004 01:18 5.0.2195.6890 122,640 Iischema.dll

Windows XP (IIS 5.1)

Service pack information

To resolve this problem, obtain the latest service pack for Windows XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
322389 How to obtain the latest Windows XP service pack

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
Prerequisites
Windows XP SP1 must be installed on your computer before you install this hotfix.
Restart requirement
You must restart your computer after you apply this hotfix.
Hotfix replacement information
This hotfix does not replace any other hotfixes.
File information
The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date Time Version Size File name
--------------------------------------------------------
11-Dec-2003 01:50 5.1.2600.1326 251,392 Adsiis.dll
11-Dec-2003 01:50 5.1.2600.1326 117,248 Ftpsvc2.dll
11-Dec-2003 01:50 5.1.2600.1326 130,048 Iischema.dll

Windows Server 2003 (IIS 6.0)

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To use this hotfix on Windows Server 2003, you must modify the Mbschema.xml file:
  1. Stop all IIS services.
  2. Create a backup of the following file:
    %systemroot%\system32\inetsrv\Mbschema.xml
  3. Right-click Mbschema.xml, point to Open With, and then click Notepad.
  4. Under the IIsConfigObject collection, type the following:
    <Property InternalName ="SuppressDefaultFTPBanner" ID="5017" Type="BOOL" UserType="IIS_MD_UT_SERVER" Attributes="INHERIT" MetaFlags="CASEINSENSITIVE" MetaFlagsEx="CACHE_PROPERTY_MODIFIED" DefaultValue="FALSE" EndingNumber="0"/>
    Note This entry must appear as one line in the Mbschema.xml. If the entry does not appear as one line, click Word Wrap on the Format menu to disable Word Wrap.
  5. Under the IISFTPService and IISFTPServer collections, type the following:
    <Property InheritsPropertiesFrom ="IIsConfigObject:SuppressDefaultFTPBanner"/>
  6. Click File, click Save, click File, and then click Close.
  7. Restart all IIS services.

Restart requirement

You must restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Date Time Version Size File name
-----------------------------------------------------
01-Aug-2003 10:26 6.0.3790.74 119,808 Ftpsvc2.dll

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft Windows XP Service Pack 2.

More Information

After you install the hotfix for your version of IIS, you must add a metabase key to enable the functionality. Use the Adsutil.vbs script that is located in the %systemroot%/inetpub/AdminScripts folder to add the metabase key and to disable the default FTP banner. To do this, follow these steps:
  1. At a command prompt, change the location to the %systemroot%/inetpub/AdminScripts folder.
  2. At the command prompt, type cscript adsutil.vbs enum msftpsvc, and then press ENTER.
  3. At the command prompt, type cscript adsutil set msftpsvc/number/SuppressDefaultFTPBanner 1(where number is the number of the FTP service where you want to disable the default FTP banner), and then press ENTER.

    Note If you have multiple FTP virtual servers, run this command for each virtual FTP server that has a different value for
    number. When you type the command, do not include a space between msftpsvc/ and number.
  4. At the command prompt, run the following command to restart the IIS service:
    iisreset
After you install the hotfix and add the metabase key, the FTP service responds with the following banner:
220
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Egenskaper

Artikel-id: 826270 – senaste granskning 28 maj 2008 – revision: 1

Feedback