Running msdeploy.exe from within Powershell Running msdeploy.exe from within Powershell powershell powershell

Running msdeploy.exe from within Powershell


How do you call msdeploy from powershell when the parameters have spaces?

Think this is already answered, just modify it.Ex. include "KitchenPC" and "secret" using variables, and put the -dest part inside quotation marks.

Working Example:

msdeploy '-verb=sync' '-source=archiveDir=c:\KitchenPC\Build -dest=appHostConfig="KitchenPC",computerName=https://192.168.0.3:8172/msdeploy.axd,authType=Basic,userName=someuser,password="secret"' -allowUntrusted

(Note single quotes around each command line argument)