I am running the following script to get IIS Websites on a server and their applications. How can I also get the enabled authentication methods and log file path for each site and applications
$server = read-host "Server Name"
invoke-command -ComputerName $server {import-module webadministration; Get-WebApplication | select @{e={$_.path.trim('/')};label="Application"}, @{e={$_.itemxpath.trim("/system.applicationHost/sites/site[@name='") -replace "' and.*", ""};l="Site"} | ft -AutoSize
-Wrap}
Thanks