When IIS is installed on the server, several scripts are also installed. One of them is IISweb.vbs, as it allows you to create a website from the command line. It is usually located in your% Windows% \ System32 directory, and you can run it from the command line using Cscript iisweb.vbs sitename / d hostheader
If you need to set additional parameters on your website, there are several ways to do this, either use the adsutil.vbs script utility, or create your dummy website, export the settings to a file (save the configuration to a file), and then when you need to create a new website, ask your program to edit the settings and then import the configuration as a new website.
A good place to look can be found in the IIS 6.0 Administrator Guide
Obviously, for this you will need the appropriate permissions on the servers on which you are creating new websites.
source share