I have a script that pulls all the site and application information from IIS. I am able to get the site authentication(windows, basic, anonymous) using
Get-WebConfigurationProperty -filter system.webServer/security/authentication/anonymousAuthentication -Location "IIS:\Sites\$siteName" -name enabled.value
How can I get the authentication for the application under the sites?