Geeks With Blogs
Pankaj Tahiliani
Use adsutil.vbs, located in the folder C:\Inetpub\AdminScripts (Windows XP, default installation). The command to use is (from a command prompt):

C:\Inetpub\AdminScripts> cscript.exe adsutil.vbs create_vserv W3SVC/2
C:\Inetpub\AdminScripts> cscript.exe adsutil.vbs copy W3SVC/1 W3SVC/2

The number (2) is the website ID of the new website. If you create multiple websites, you will need to use a unique ID each time. The first of these commands will create a new website. The second will copy all the necessary data from the default website, to your new website.

After you have created a new website on Windows XP (depending on how you did), you will notice that you have a red error icon in front of the website in IIS Manager. This is because IIS tried to start the website, but was not able to do so (because of the limitation).

When you are ready to delete the website, you will notice another problem...you cannot delete the website! (from IIS Manager). Since the GUI does not allow you create websites, why would it allow you to delete websites? Luckily enough, we can delete the website using adsutil.vbs, Metabase Explorer or ADSI/WMI. To delete a website using adsutil.vbs, write this in a command prompt:

C:\Inetpub\AdminScripts> cscript.exe adsutil.vbs delete W3SVC/2

Posted on Sunday, October 25, 2009 4:01 AM | Back to top


Comments on this post: Multiple websites on Windows XP Professional

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Pankaj Tahiliani | Powered by: GeeksWithBlogs.net