Hiya, If you’re unlucky enough to be working with IIS 5.1 under Windows XP Pro, you’ll no doubt be aware that out-of-the-box it doesn’t support multiple websites.
Luckily, IIS does ship with a number of administrative VB script files which allow you to modify the IIS metabase as well as a few other things including administrative functionality.
Below are some script commands you can use to configure new sites and increase the number of maximum connections (from the default of 10).
You still can only operate one site at a time but at least you can have multiple configurations without having to use a bunch of virtual directories.
/// Using IIS Admin Scripts to Manage IIS 5.1 on Windows XP Professional
/// This assumes you’ve installed IIS with Admin Scripts to the default install directory
/// which is %SysDrive%\Inetpub
Use cscript.exe as default:
List all websites:
C:\Inetpub\AdminScripts\adsutil.vbs enum w3svc /p
Create a new Website:
(Note: /2 here represents the index of the new site)
C:\Inetpub\AdminScripts\adsutil.vbs create_vserv W3SVC/2
Increase max connections:
(Note: 20 represents the new max connection, use whichever value you require)
C:\Inetpub\AdminScripts\adsutil set w3svc/MaxConnections 20
Copy a website to another website:
(Note: /1 and /2 here represents the index of the source and destination sites)
C:\Inetpub\AdminScripts\adsutil.vbs copy W3SVC/1 W3SVC/2
To delete a site:
(Note: /2 here represents the index of the site to delete)
C:\Inetpub\AdminScripts\adsutil.vbs delete W3SVC/2
Hope it helps,