As part of our build process we deploy our web applications using MSDeploy. This worked perfect until a few weeks ago (I think when we updated our build/TFS server to SP1 of
I was able to work around this issue by surrounding the whole argument in quotes and the inner argument in single quotes, ie:
.\Deploy.cmd /y /m:https://SERVER:8172/msdeploy.axd -allowUntrusted "-postSync:runCommand='echo hello'"