Remove a Managed Module (IIS 7)
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
You can remove a managed module from a site or application if the site or application does not require the module for processing. Removing a managed module means that the module is removed from the list of active modules; however, the code still exists on the Web server. You can add the module again if application requirements change.
The Modules page lists both managed and native modules used by a Web site or a Web application. This list might be a subset of all native and managed modules present on the Web server.
For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required for this procedure, see Managed Modules Feature Requirements (IIS 7).
Exceptions to feature requirements
To remove a managed module
You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.
To use the UI
Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
In Features View, on the server, site, or applicationHome page, double-click Modules.
On the Modules page, select the managed module that you want to remove in the Modules list.
In the Actions pane, click Remove and then click Yes.
To remove a managed module at the server level, use the following syntax:
appcmd delete module /module.name:string
The variable module.namestring is the name of the managed module that you want to remove from the server level. For example, to remove a managed module named FormsAuthentication, type the following at the command prompt, and then press ENTER:
appcmd delete module /module.name:FormsAuthentication
When you want to remove a managed module from a specific site or an application, include the virtual path of the site's root application or to an application in a site by specifying a value for the app.name attribute. For example, to remove the same managed module as in the previous example from the Default Web Site, type the following at the command prompt, and then press ENTER:
appcmd delete module /module.name:FormsAuthentication /app.name:"Default Web Site/"
When you want to remove a managed module from a site's root application, make sure that you include the "/" after the name of the site. In addition, if your site name has spaces, enclose the whole string in quotation marks.
For more information about Appcmd.exe, see Appcmd.exe (IIS 7).
The procedure in this topic affects the following configuration elements:
For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.
Use the following WMI classes, methods, or properties to perform this procedure:
ModulesSection class (IIS)
HttpModulesSection class (ASP.NET)
For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.