Protocols with IIS 7 Support

I have a 2008r2 server. The default website has Enabled Protocols set to "http, net.tcp". When any new applications are created on the website by default, I would like the same enabled protocols to be enabled by default. Can anyone advise how to do this? Currently, when I add an application, one is created with only the http protocol enabled

+5
source share
4 answers

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

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

+6
source

- , :

- . -, :

$iisAppName = %YourWebsiteName%
Set-ItemProperty IIS:\sites\$iisAppName -name applicationDefaults.enabledProtocols -Value "http,net.tcp"

. Rob Enabled Protocols -, .

+3

I struggled with this for a while and looked at how to include it in MSI (WiX or another) or in the web.config file of each application or service. In the end, the easiest solution was to change the default website in IIS so that it applies to every application and service without the need to change MSI or web.config. Basic steps: In IIS Manager, click the "Sites" node, then click "Set Default Settings ...", change the "Enabled Protocols" property to http, net.tcp

0
source

All Articles