IIS: Automate creation of virtual dirs of web sites

I just bought a new rack server and i've been setting it up, I don't want to point any sites too it until i know all the sites are working fine. So what I am wondering is if there is a way through a tool or script to automate the creation of a virtual directory for each site under say the default site.

So you can access all the site without having to use there domain name.

For example
www.domain.com could be acessed for testing here:
default site/domain.com

Also helpful for new clients who register a new domain, so they can start workin and testing there site while the domain registers.

 

 

 

 

Top