title: msdeploy build with TeamCity - ERROR_USER_NOT_ADMIN
body: <p>I've got a 2012R2 Continuous Integration Server with TeamCity installed on it and WebDeploy 3.5. I'm trying to deploy a build to a site which is hosted on another Server2012R2 using IIS 8.5 (it also has Web Deploy 3.5 installed) and I am getting this error message:</p>
  
  <pre><code>Error Code: ERROR_USER_NOT_ADMIN
  [13:12:26][Step 3/3] More Information: Connected to 'myiisserver' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'myiisserver'.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
  [13:12:26][Step 3/3] Error: The remote server returned an error: (401) Unauthorized.
  </code></pre>
  
  <p>As you can see from the error message I can connect to the server but It can't authenticate with the credentials that I'm specifying. This is the command I am using:</p>
  
  <pre><code>msdeploy -source:package='%PackageFile%' -dest:auto,computerName='http://%WebServer%/MSDeployAgentService',username="myiisserver\blibli",password="password",authtype="Basic",includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"%ParamFile%" -setParam:"IIS Web Application Name"="%IisSiteName%" -enableRule:DoNotDelete
  </code></pre>
  
  <p>The username I'm using is an admin on both machines and I'm using also specifying the right password.</p>
  
  <p>Could you please throw any light at this guys? I have already lost 3 hours trying to sort out this issue...</p>
  
  <p>Many thanks</p>