+1  A: 

check this: link

Icebob
took me a while to get iiscnfg to work correctly, but its working now, thank you :)
Nippysaurus
+1  A: 

You can use WSH or VBS to do this, check this for details --> http://www.developersdex.com/gurus/articles/190.asp

Bhaskar
Read the question more carefully, specifically the first sentence.
Nippysaurus
A: 

To use IISVDIR.VBS you need to pass it as an argument to cscript.exe which also comes with Windows Server. The only example I have of its usage is to delete a virtual directory using the /delete switch, however I'm sure you can add in a similar way.

ck