I want to be able to create a new website with a new host header (which I can obviously do using the IIS Manager) from the command line so that it can be scripted.
Essentially what you can do with iisweb on IIS 6.
I want to be able to create a new website with a new host header (which I can obviously do using the IIS Manager) from the command line so that it can be scripted.
Essentially what you can do with iisweb on IIS 6.
Use built-in appcmd, like this - using the bindings argument a host header can be specified:
Powershell:
Using Powershell combined with the .NET assembles:
You can basically control every facet of the web site/web server.