I\'m trying to get msdeploy installed and set up. I\'ve installed the remote service on the web server, but all my tests are giving me a 401 unauthorised
For me, publishing worked in Visual Studio, but it did not work when I ran the .deploy.cmd script.
By setting in your .csproj, you can force VS to use msdeploy.exe instead of an MSBuild task. Then by turning up the logging level (Tools > Options > Projects and Solutions > Build and Run > MSBuild project build output verbosity) you can see the command line that VS uses.
The problems with my .deploy.cmd were:
?site= in the computerName.AuthType='Basic' in the -dest: parameter.