Ever wanted more out of IISWeb?
I have modified IISWeb.vbs to handle easier creation of websites, including aliases, defaulting to creating the www.domainname.com aliases. You can download the file here. Here is an example command:
iisweb /create C:\wwwroot\test.com “test.com” /b 80 /d test.com /a test.net,test.org
The command will create the website test.com in IIS along with aliases of
www.test.com
test.net
www.test.net
test.org
www.test.org