Programmatically assigning IIS Application Pool Identity “users” to Groups
问题 The Problem: When new IIS Application Pools are created and set to use the Application Pool Identity for permissions, I am unsure how to add those identities to User Groups such as Administrator or Performance Counter Users. The Background: I'm currently writing a C#.NET library which uses Microsoft.Web.Administration in order to do the following: Detect if IIS 7.x is installed, and if so, what components. Install or upgrade IIS 7.x to a provided list of required components. Create/manage one