운영체제
Powershell IIS binding 도메인 가져오기
warpmemory
2017. 12. 5. 18:30
1 2 3 4 5 6 7 8 9 10 | Import-Module Webadministration foreach ($site in (Get-ChildItem -Path IIS:\Sites |Where-Object {$_.PhysicalPath -match 'www\\$'})) { write-host $site.Name foreach ($bindings in $site.Bindings.Collection) { foreach ($binding in $bindings) { write-host $binding.bindingInformation.Split(":")[2] } } } | cs |