Use the appcmd command, enter
%systemroot%\system32\inetsrv\APPCMD add site /?
And you will see that only the name parameter is required, here is part of this output:
[w: \ kanta]% systemroot% \ system32 \ inetsrv \ APPCMD add site /? Add new virtual site
APPCMD add SITE <-parameter1: value1 ...>
Creates a new virtual site with the specified settings. At a minimum, you must provide the name and identifier of the site.
Supported options:
/ name (required)
Site name
/identifier
Site id
/ bindings
List of bindings in the friendly form of "http://domain:port,..." or raw form of "protocol/bindingInformation,..."
/ physicalPath
If specified, will cause the root application containing a root virtual directory pointing to the specified path to be created for this site. If omitted, the site is created without a root application and will not be startable until one is created.
/?
Display the dynamic site properties that can be set on the new site
Antonio Bakula
source share