有没有办法只使用PowerShell从IIS绑定中获取协议类型?
答案 0 :(得分:0)
Web Server (IIS) Administration Cmdlets可以帮助完成此任务:
Import-Module WebAdministration
Get-WebBinding
结果:
protocol bindingInformation
-------- ------------------
http *:80:
如果您只想要协议,可以使用以下内容:
Get-WebBinding | Select protocol