{"id":4705,"date":"2013-12-13T11:47:16","date_gmt":"2013-12-13T07:47:16","guid":{"rendered":"http:\/\/msbro.ru\/?p=4705"},"modified":"2013-12-13T11:47:16","modified_gmt":"2013-12-13T07:47:16","slug":"skript-vyvoda-informacii-ob-iis-na-exchange-2013","status":"publish","type":"post","link":"https:\/\/msbro.ru\/index.php\/archives\/4705","title":{"rendered":"\u0421\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 IIS \u043d\u0430  Exchange 2013"},"content":{"rendered":"<p>\u041e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e IIS7<br \/>\n\u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u0435\u0431\u0435 \u0432 \u043a\u043e\u043f\u0438\u043b\u043a\u0443<\/p>\n<p><!--more--><\/p>\n<pre>get-website | ForEach-Object -Process { \r\n$xSite=\"IIS:\\sites\\\"+$_.Name  \r\ncd $xSite  \r\n$xSite \r\n$myWebApp=get-webApplication\r\n$myWebApp | Format-Table -AutoSize Path , \r\n@{Label=  \"anonim:\" ; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/anonymousAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},\r\n@{Label=  \"Basic:\"; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/basicAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},\r\n@{Label=  \"ClientCert:\"; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/clientCertificateMappingAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},\r\n@{Label=  \"Digest:\"; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/digestAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},\r\n@{Label=  \"IIS client Cert:\"; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/iisClientCertificateMappingAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},\r\n@{Label=  \"Windows\"; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/authentication\/windowsAuthentication   -Name Enabled -PSPath $xSite -location $_.Path).value }},\r\n@{Label=  \"SSL Flags\"; Expression = {(Get-WebConfigurationProperty -Filter \/system.webServer\/security\/access    -Name * -PSPath $xSite -location $_.Path).SSLflags }}\r\n}<\/pre>\n<p>\u0432\u044b\u0432\u043e\u0434:<\/p>\n<p><a href=\"http:\/\/msbro.ru\/wp-content\/uploads\/2013\/12\/exch-2013-iis.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5019\" alt=\"exch-2013-iis\" src=\"http:\/\/msbro.ru\/wp-content\/uploads\/2013\/12\/exch-2013-iis.png\" width=\"877\" height=\"571\" srcset=\"https:\/\/msbro.ru\/wp-content\/uploads\/2013\/12\/exch-2013-iis.png 877w, https:\/\/msbro.ru\/wp-content\/uploads\/2013\/12\/exch-2013-iis-300x195.png 300w, https:\/\/msbro.ru\/wp-content\/uploads\/2013\/12\/exch-2013-iis-730x475.png 730w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a: \u00a0<a href=\"http:\/\/habrahabr.ru\/post\/204454\/\" target=\"_blank\">http:\/\/habrahabr.ru\/post\/204454\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e IIS7 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0441\u0435\u0431\u0435 \u0432 \u043a\u043e\u043f\u0438\u043b\u043a\u0443<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4705","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/4705"}],"collection":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/comments?post=4705"}],"version-history":[{"count":0,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/4705\/revisions"}],"wp:attachment":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/media?parent=4705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/categories?post=4705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/tags?post=4705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->