IIS 7: The Administrator’s Guide
Management Tools
GUI IIS Manager
Command Line appcmd
Script WMI (root\WebAdministration)
Managed Code Microsoft.Web.Administration
Manage IIS and ASP.NET
View enhanced runtime data
worker processes, appdomains, executing requests
Manage delegation
Use whichever management tool suits your needs…
IIS Manager
Remotes over HTTP, making it firewall friendly
(remoting is not installed by default)
Provides managed extensibility
Supports non-admin management of sites and applications
Educate end users who publish their application
and use IIS Manager configure it…
Scenario:
User publishes application
User changes app’s web.config using IIS Manager
User copies updated web.config to his local
version of the application
Several days later, user re-publishes application
** modifications make to the app’s web.config using
IIS Manager have just been blown away**
Appcmd – Listing and Filtering
C:\> appcmd list sites
SITE "Default Web Site" (id:1,bindings:HTTP/*:80:,state:Started)
SITE "Site1" (id:2,bindings:http/*:81:,state:Started)
SITE "Site2" (id:3,bindings:http/*:82:,state:Stopped)
C:\> appcmd list requests
REQUEST "fb0000008000000e" (url:GET
/wait.aspx?time=10000,time:4276 msec,client:localhost)
C:\> appcmd list requests /apppool.name:DefaultAppPool
C:\> appcmd list requests /wp.name:3567
C:\> appcmd list requests /site.id:1
Filter results by
application pool,
worker process, or site
appcmd
ASP.NET: Migration
Application Pools
ASP.NET Integrated mode by default
Configure to load a specific version of the .NET Framework
Integrated Mode
Different server environment for some pipeline notifications
e.g. request is not authenticated for BeginRequest
Handler and module configuration integrated with IIS
system.webServer/handlers, system.webServer/modules
Validation warns on httpHandlers, httpModules, or identity config
Remove “managedHandler” precondition on an ASP.NET module
to have it execute for all content
ISAPI Mode
Can’t configure HTTP handlers and modules from the UI
Configuration Schema
Use the schema file to see all config settings:
%windir%\system32\inetsrv\config\schema\IIS_schema.xml
Schema describes:
property types
default values
validation
encrypted by default?
note: config is case sensitive