Web Deploy -source argument and Related IIS Object

The Web Deploy utility has different options in the -source argument and an understanding of each option and the level the argument interacts with in IIS will make the migration so much easier.


 This chart illustrates the IIS object level and the Web Deploy argument for the –source. The –whatif command is used in each example just to ensure the target web site is not over written while testing these commands.

IIS Object Level

Web Deploy -source Example

Server Level


msdeploy.exe -verb:sync -source:webServer,computername= -dest:webServer,computername= -whatif > c:\_WebDeploy\ServerDiff2.txt


msdeploy -verb:sync -source:webserver  -dest:webserver,computername= -whatif

Complete Web Site

Includes bindings and certificate information.


msdeploy -verb:sync -source:appHostConfig="Hello" -dest:appHostConfig="Hello",computerName= -enableLink:AppPoolExtension -whatif > c:\_webdeploy\HelloUpdate.txt

Hello = Web Site

Web Site File Contents

Files only and no configuration information.


msdeploy.exe -verb:sync -source:contentPath="Hello" -dest:contentPath="Hello",computername= -whatif

Application under a site

iisApp msdeploy -verb:sync -source:iisApp="Hello/TestWD" -dest:iisApp="Hello/TestWD",computername= -whatif

Directory level


msdeploy -verb:sync -source:dirPath=C:\inetpub\wwwroot\Hello\TestWD -dest:dirPath=C:\inetpub\wwwroot\Hello\TestWD,computername= -whatif

File Level filePath msdeploy -verb:sync -source:filePath=C:\inetpub\wwwroot\Hello\TestWD\Hello.html -dest:filePath=C:\inetpub\wwwroot\Hello\TestWD\Hello.html;computername= -whatif
Comments (0)

Skip to main content