title: (MSDeploy) Deploying Contents of a Folder to a Remote IIS Server
body: <p>Is it possible to deploy the contents of a folder (plain Html files) to a specific web application on a remote IIS6/7 server?</p>
  
  <p>The following command does not error, but neither does it publish any files to the remote server:</p>
  
  <pre><code> msdeploy.exe -verb:sync -source:dirPath="c:\myHtmlFiles" -dest:auto,ComputerName="http://deploy.mycompany.co.uk/msdeploy?site=TestSite",includeAcls="false",username="administrator",password="myPassword" -enableRule:DoNotDeleteRule -disableLink:AppPoolExtension -disableLink:ContentExtension -allowUntrusted
  </code></pre>
  
  <p>NOTE:</p>
  
  <ul>
  <li>WebDeploy is correctly installed on the destination server and works happily with packages created from msbuild scripts for .NET projects.</li>
  <li>'<a href="http://deploy.mycompany.co.uk/msdeploy">http://deploy.mycompany.co.uk/msdeploy</a>' is correct for the listening end-point.</li>
  <li>The '?site=TestSite' query string was suggested elsewhere, but does not work.</li>
  <li>The 'TestSite' web application exists on the target server.</li>
  <li>Parameter files and -setParam do not work, and renders errors relating to the source not supporting the parameter 'IIS Web Application Name' if you attempt to set, declare, or provide it.</li>
  </ul>