Скрипт вывода информации об IIS на Exchange 2013

Один человек на хабре опубликовал скрипт, который выводит информацию о IIS7
добавил себе в копилку

get-website | ForEach-Object -Process { 
$xSite="IIS:\sites\"+$_.Name  
cd $xSite  
$xSite 
$myWebApp=get-webApplication
$myWebApp | Format-Table -AutoSize Path , 
@{Label=  "anonim:" ; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/anonymousAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},
@{Label=  "Basic:"; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/basicAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},
@{Label=  "ClientCert:"; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/clientCertificateMappingAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},
@{Label=  "Digest:"; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/digestAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},
@{Label=  "IIS client Cert:"; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/iisClientCertificateMappingAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},
@{Label=  "Windows"; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/windowsAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},
@{Label=  "SSL Flags"; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/access    -Name * -PSPath $xSite -location $_.Path).SSLflags }}
}

вывод:

exch-2013-iis

 

источник:  http://habrahabr.ru/post/204454/

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *