IT:AD:MSDeploy:HowTo:Rename a Virtual Directory
Summary
Process
msdeploy
-verb:sync
-source:runcommand
-dest:runcommand="%systemroot%\system32\inetsrv\appcmd set app "Default Web Site/Test6" -path:/Test7"
Tip: Avoid quoting physicalPath value (seems to mess up IIS Metadata)
If remotely, add the computername/username/password as required:
msdeploy
-verb:sync
-source:runcommand
-dest:runcommand="%systemroot%\system32\inetsrv\appcmd set app "Default Web Site/Test6" -path:/Test7, computername=192.168.0.2,userName=Administrator,password=Password1,waitinterval=15000