I have a Win2008 server with IIS 7 and I want to duplicate one web site and just change the binding port and the application pool that is using, so I will have 2 web sites (locally or remote) with same configuration but listening on different ports.

Is there a way to do this with web deploy tool ir order to deploy locally and remotely this unique web site and change the binding ports in the destination?


I found another question that answers exactly what I need. I just made some adjusments to my scenario:

IIS7 - Web Deployment Tool - SetParam/SetParamFile to set http and https bindings + Cert

Now I can set the parameters in the command line like this:

msdeploy.exe -verb:sync

and just change the "webserver1" and "8080" with what I need.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.