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. | |||
|
feedback
|
|
Use built-in appcmd, like this - using the bindings argument a host header can be specified:
| |||||
feedback
|
|
I found a great article on IIS Serverside which seems to walk through the process. (I'll come back and update this answer when I have a short walk-through.) | |||
|
feedback
|