title: Enable authentication for IIS app in Powershell
body: <p>I know how you set this for IIS web site by following command:</p>
  
  <pre><code>Set-WebConfigurationProperty -filter "/system.webServer/security/authentication/windowsAuthentication" -name enabled -value true -PSPath "IIS:\" -location $siteName
  </code></pre>
  
  <p>But I want to set it for the applications inside that website. For example, I have IIS website named "MySite" and inside that, there are two applications. I want to enable Windows authentication for one and not for the other. So enabling at site level will be enabled for both and that is what I don't want.</p>