title: IIS 7.5: Setting 'app pool user' as the anonymous user programmatically
body: <p>I have an web app in IIS 7.5 with its own AppPool using .net 4.</p>
  
  <p>I want to use the feature of having anonymous access as the app pool identity - which is easily configured in a GUI via the inetmgr snapin.</p>
  
  <p>Is there any way do this programmatically, for instance through web.config?</p>
  
  <p>I've looked around and it appears that the <a href="http://www.iis.net/ConfigReference/system.webServer/security/authentication/anonymousAuthentication" rel="noreferrer">anonymousAuthentication</a> element does the trick, but it does not explain how to specify the app pool user in any significant way.  I've tried setting my anon user to 'IIS APPPOOL/[AppPoolName]'  as seems to be suggested <a href="http://blogs.iis.net/webtopics/archive/2009/03/13/changes-to-application-pool-identities-in-iis-7-5-beta.aspx" rel="noreferrer">here</a>, with no success.</p>
  
  <p>Any suggestions to how this is supposed to be configured?</p>