title: Setting NTAuthenticationProviders at an Application level in IIS 6
body: <p>I have the following structure in IIS.</p>
  
  <pre><code>Internet Information Services  
   (local computer)
    Web Sites  
     Default Web Site  
      MyApplication
  </code></pre>
  
  <p><code>MyApplication</code> is a Application in IIS.</p>
  
  <p>Integrated Windows authentication is NOT set on the <code>Default Web Site</code>.
  However I want to set Integrated Windows authentication on <code>MyApplication</code>. (Its an intranet app).</p>
  
  <p>This can be done via the GUI: Right click on the <code>Default Web Site</code> and choose <code>Properties</code>. Select the <code>Directory Security</code> tab, and click <code>Edit</code> on the Anonymous access and authentication control.</p>
  
  <p>I want to include this in a setup script. I have other setup commands, using <code>adsutil.vbs</code> but I'm struggling to set up the Integrated windows authentication.</p>
  
  <p>Running:</p>
  
  <blockquote>
    <p>cscript //nologo c:\Inetpub\AdminScripts\adsutil.vbs GET /W3SVC/1/NTAuthenticationProviders</p>
  </blockquote>
  
  <p>Returns</p>
  
  <pre><code>NTAuthenticationProviders       : (STRING) "NTLM"
  </code></pre>
  
  <p>However, i exepcted to be able to run</p>
  
  <blockquote>
    <p>cscript //nologo c:\Inetpub\AdminScripts\adsutil.vbs GET /W3SVC/1/ROOT/MyApplication/NTAuthenticationProviders</p>
  </blockquote>
  
  <p>But this returns</p>
  
  <pre><code>Error Trying To GET the property: (Get Method Failed)
  NTAuthenticationProviders (This property is probably not allowed at this node)
  </code></pre>
  
  <p>Is it not possible to set <code>NTAuthenticationProviders</code> Metabase property on an appliction level?</p>