Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Creating a new website

$
0
0

Im trying to create a website in IIS, an app-pool, and the location where the site files are stored along with the binding using this script:

Import-Module WebAdministration
New-Item -type directory -path D:\testsite
New-Website -Name "testsite" -bindings @{protocol="http";bindingInformation=":80:TestSite"} -Port 80 -IPAddress "192.168.1.99" -PhysicalPath D:\testsite -ApplicationPool "ASP.NET v4.0"


 but i get the error "a parameter cannot be found that matches bindings"

whats going wrong here?


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>