Creating a new Web Site on IIS7.5 with Powershell
It’s really easy to create new web site on IIS7.5 with Powershell WebAdministration module.
Import-Module WebAdministration New-Item IIS:\Sites\$Description -Bindings (@{Protocol="http";BindingInformation="*:80:$Domain"},@{Protocol="http";BindingInformation="*:80:www.$Domain"}) -PhysicalPath "$LogDir\http"
As you see, you can set Bindings with the same command. Next time, I’ll write a function.
Tags: create bindings iis7.5 powershell, create web site powershell, iis7.5 create website powershell, new-item IIS website
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply