Partager via


Viewing Available MIME Types

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

To help prevent attackers from sending files that could compromise the security of your Web server, the IIS static file handler serves only the files that are explicitly listed in the list of Multipurpose Internet Mail Extensions (MIME) types. IIS is preconfigured to recognize a default set of global MIME types that are recognized by all of the Web sites that you create with IIS.

Procedures

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

To see a list of all available MIME types by using IIS Manager

  1. In IIS Manager, right-click the local computer, and then click Properties.

  2. In MIME types, click MIME Types.

    The registered MIME types are displayed in Registered MIME types (file extensions). You can add, change, or remove MIME types from the list.

To see a list of all available MIME types by using Adsutil.vbs

  1. From the Start menu, click Run.

  2. In the Open box, type cmd, and then click OK.

  3. At the command prompt, switch to the drive\Inetpub\AdminScripts directory.

  4. Type the following at the command prompt and then press ENTER:

    cscript.exe adsutil.vbs enum /Mimemap