Currently whenever a new subdomain is created for the site, a new host header value needs to be added manually in IIS for it to work (needs to work with and without SSL). Is there a way to set host header value via API so that subdomains can be created without human intervention?
A:
For IIS 6, WMI will do the trick. Here's an example on Technet/MSDN:
Creating Sites and Virtual Directories, and Setting Properties Using WMI
-Oisin
x0n
2010-08-25 15:24:42
Thanks for pointing me in the right direction. Full instructions on how to do this can be found [here](http://www.codeproject.com/KB/aspnet/addhostheader.aspx)
Shagglez
2010-08-25 16:36:14