{"id":1098,"date":"2020-02-28T15:40:33","date_gmt":"2020-02-28T13:40:33","guid":{"rendered":"http:\/\/dety.net.ua\/?p=1098"},"modified":"2020-02-28T15:40:33","modified_gmt":"2020-02-28T13:40:33","slug":"iis-get-configuration","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=1098","title":{"rendered":"IIS + get configuration"},"content":{"rendered":"\n<p>get-website | ForEach-Object -Process { <br>\n$xSite=&#8221;IIS:\\sites\\&#8221;+$_.Name  <br>\ncd $xSite  <br>\n$xSite <br>\n$myWebApp=get-webApplication<br>\n$myWebApp | Format-Table -AutoSize Path , <br>\n@{Label=  &#8220;anonim:&#8221; ; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/anonymousAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},<br>\n@{Label=  &#8220;Basic:&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/basicAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},<br>\n@{Label=  &#8220;ClientCert:&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/clientCertificateMappingAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},<br>\n@{Label=  &#8220;Digest:&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/digestAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},<br>\n@{Label=  &#8220;IIS client Cert:&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/iisClientCertificateMappingAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},<br>\n@{Label=  &#8220;Windows&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/windowsAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},<br>\n@{Label=  &#8220;SSL Flags&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/access    -Name * -PSPath $xSite -location $_.Path).SSLflags }}<br>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>get-website | ForEach-Object -Process { $xSite=&#8221;IIS:\\sites\\&#8221;+$_.Name cd $xSite $xSite $myWebApp=get-webApplication $myWebApp | Format-Table -AutoSize Path , @{Label= &#8220;anonim:&#8221; ; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/anonymousAuthentication -Name Enabled -PSPath $xSite -location $_.Path).value }}, @{Label= &#8220;Basic:&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/basicAuthentication -Name Enabled -PSPath $xSite -location $_.Path).value }}, @{Label= &#8220;ClientCert:&#8221;; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/clientCertificateMappingAuthentication -Name Enabled -PSPath [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13],"tags":[],"class_list":["post-1098","post","type-post","status-publish","format-standard","hentry","category-exchange","category-novosti"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1098"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1098\/revisions"}],"predecessor-version":[{"id":1099,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1098\/revisions\/1099"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}