使用PowerShell从IIS绑定的协议类型

时间:2015-04-09 11:08:37

标签: powershell iis

有没有办法只使用PowerShell从IIS绑定中获取协议类型?

1 个答案:

答案 0 :(得分:0)

Web Server (IIS) Administration Cmdlets可以帮助完成此任务:

Import-Module WebAdministration
Get-WebBinding

结果:

protocol                                                    bindingInformation
--------                                                    ------------------
http                                                        *:80:

如果您只想要协议,可以使用以下内容:

Get-WebBinding | Select protocol