Quantcast
Viewing all articles
Browse latest Browse all 26542

IIS Authentication and Logs settings

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


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>