启用IIS 7的协议 [英] IIS 7 Enabled Protocols

查看:49
本文介绍了启用IIS 7的协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台Win 2008r2服务器.默认网站的启用协议"设置为"http,net.tcp".当在默认网站下创建任何新的应用程序时,我想默认使用相同的已启用协议.谁能告诉我该怎么做?当前,当我添加应用程序时,将使用仅"http"启用的协议创建一个.

I have a win 2008r2 server. The default website has Enabled Protocols set to "http,net.tcp". When any new applications are created under the default website I would like then to default to having the same enabled protocols. Could anyone please advise how to do this? Currently when I Add Application one is created with an enabled protocol of only "http"

推荐答案

我发现使用Powershell的IIS提供程序可以做到这一点.以下行对我有用:

I found this was possible using the IIS provider for Powershell. The following line worked for me:

Set-ItemProperty IIS:\ sites \ $ NetTcpWebsite -name EnabledProtocols -Value"http,net.Tcp"

这篇关于启用IIS 7的协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆