Remote Administration Behavior Matrix

Introduction

This document contains the matrix of scenarios for remote administration for IIS Manager and the runtime behavior for each one. It helps understand the different administration scenarios and troubleshooting issues (401s).

A prerequisite for remote administration via the IIS 7.0 UI is starting the remote administration service (WMSVC) on the server machine. A good article for this information is Remote Administration for IIS Manager.

General rules of thumb which are valid for every item in the matrix: 

  • Redirection.config, applicationHost.config and administration.config are always read (even for site and app connections). 
  • Redirection.config is always read using the identity in which the service WMSVC runs (by default: NT Service\WMSVC). 
  • If configurationRedirection is enabled in Redirection.config, then:
    • Server Config files (applicationHost.config, administration.config) are always read using the username and password specified in redirection.config
  • If configurationRedirection is disabled, then: 
    • Server Config files (applicationHost.config, administration.config) are always read using the identity in which WMSVC runs (NT Service\WMSVC by default)
  • UI does nothing special when trying to read Root web.config, the ASP.NET counterpart of applicationHost.config

Remote Administration Behavior Matrix

 

Connect As: Windows Administrator Windows User IIS Manager User
Default Experience Server Connection:
  • UI impersonates as the windows admin when writing to the server config files (applicationHost.config, administration.config and root web.config)
Server Connection:
  • N/A
Server Connection:
  • N/A
 
Site Connection:
  • UI impersonates as the windows admin when reading from and writing to the site's web.config  
Site Connection:
  • UI impersonates as the windows user when reading from and writing to the site's web.config
Site Connection:
  • Site's web.config file is read from and written to using the identity in which WMSVC runs (NT Service\WMSVC)
App Connection:
  • Same as the site connection
 App Connection:
  • Same as the site connection  
App Connection:
  • Same as the site connection
Site or App on UNC Server Connection:
  • UI impersonates as the windows admin when writing to the server config files( applicationHost.config, administration.config and root web.config)  
Server Connection:
  • N/A
Server Connection:
  • N/A
 
Site Connection:
  • If UNC credentials are specified for the UNC share, UI will read the site's web.config file using those UNC credentials and write as windows administrator
  • If UNC credentials are not specified for the UNC share, UI will read from and write to the site's web.config file as windows administrator
 
Site Connection:
  • If UNC credentials are specified for the UNC share, UI will read the site's web.config file using those UNC credentials and write as windows user
  • If UNC credentials are not specified for the UNC share, UI will read from and write to the site's web.config file as windows user
Site Connection:
  • If UNC credentials are specified for the UNC share, UI will read the site's web.config file using those UNC credentials and write using the identity in which WMSVC runs (NT Service\WMSVC)
  • If UNC credentials are not specified for the UNC share, UI will read from and write to site's web.config using the identity in which WMSVC runs (NT Service\WMSVC)
*see note below

App Connection:
  • Same as the site connection
App Connection:
  • Same as the site connection
App Connection:
  • Same as the site connection
* see note below

Configuration Redirection is enabled in Redirection.Config

Config files: applicationHost.config administration.config
Server Connection:
  • Server files are read using the username and password specified in redirection.config
  • UI impersonates as the windows admin when writing to the server config files( applicationHost.config, administration.config and root web.config)
Server Connection:
  • N/A
  
Server Connection:
  • N/A
  
 Site Connection:
  • UI impersonates as the windows admin when reading from and writing to the site's web.config
 Site Connection:
  • UI impersonates as the windows user when reading from and writing to the site's web.config
Site Connection:
  • Site's Config is read from and written to as the identity in which WMSVC runs (NT Service\WMSVC)
 
App Connection:
  • Same as the site connection
App Connection:
  • Same as the site connection
App Connection:
  • Same as the site connection

 

*Note: If NT Service\WMSVC does not have permissions to the UNC share -- which will be the case for UNC shares on another machine -- (WMSVC means nothing outside the realm of a local machine), update the identity of Web Management Service (services.msc) to be a domain user that has access to the server as well as the UNC share.

IMPORTANT: Do not use a Network Service identity – it is a possible security risk, since that is the identity under which ASP.NET applications run. If you use ACLs to this account, you will open your content/configuration up for anyone to access via an aspx page.

Related Content

Comments

what's about creating subdirectories (virtual directories). I connected remotely to a site as windows user and as IIS-Manager user, but I wasn't able to create virtual dirs. I changed the NTDS permissions of the site directory, so that the user accounts had full access, but the remote Admin Interface doesn't offer me to create virtual directories. In a hosting env I'd like to give a site to a customer and he should be able to have full site control. But perhaps I didn't find the correct way to do so.

Yours
Franz-Georg Clodt

Feb 03 2009 by fgclodt

Hello Franz-Georg Clodt
The vdirs are added in applicationHost.config file, which is a server scope specific task. This task isnt offered in a delegated admin scenario.

what sort of site control options are you looking for? Is it content deployment and management or anything else as well?

Feb 18 2009 by nitashav

Submit a Comment

You must Log In to comment.

Microsoft Communities