Admin-Ahead Community

Windows => General Windows => Topic started by: Chetan Singh on January 25, 2014, 10:50:34 am

Title: Create site from command prompt.
Post by: Chetan Singh on January 25, 2014, 10:50:34 am
Hello,

Creating site from the IIS control panel is very easy. Have you every try to create site from the command prompt ? No! Alright, here is an example!

Open Command prompt as a Administrator and switch to the : Windows\System32\inetsrv directory.

======================>>>

C:\Windows\System32\inetsrv>appcmd.exe add site /name:test /physicalPath:c:\test /bindings:http/*:80:www.tes.com

======================>>>

This command will create a new site called "test" with document root and domain name will be www.tes.com.

Thank you,