Tuesday, September 11, 2007

IIS Commands to Create Web Sites and Virtual Directory

REM: create web site using specified app pool and port
iisweb /create "C:\Inetpub\wwwroot\MyWebSite" "My First Web Site" /b 5009 /ap MyAppPool

REM: create virtual directories under the web site and use the specified app pool
iisvdir /create "My First Web Site" MyWebApplication "C:\Inetpub\wwwroot\MyWebSite\MyWebApplication"

No comments: