JeffreyABecker
JeffreyABecker

Reputation: 2743

msdeploy could not authorize when user is local admin

My msdeploy script is suddenly throwing 401 unauthorized errors after a password change on the my webadmin account. The script I'm using is:

msdeploy.exe -source:package='[MyPackage].zip' -dest:auto,ComputerName='[MyServer]',UserName='[MyWebAdminUser]',Password='[MyWebAdminPassword]',IncludeAcls='False',AuthType='Basic' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -retryAttempts=2 -setParam:'IIS Web Application Name'='[MyApp]'

In terms of trouble shooting:

What else can I try?

Upvotes: 0

Views: 1029

Answers (2)

JeffreyABecker
JeffreyABecker

Reputation: 2743

So, the ultimate problem was many-fold

  1. The passwords had expired on the WDeploy* accounts
  2. The AD structure had an undocumented change where usernames across domains now have to be fully qualified in the @domain.com format.
  3. The MyWebAdminUser password was changed to include a string which broke the powershell script

Upvotes: 0

Richard Szalay
Richard Szalay

Reputation: 84724

Check the Web Deploy event log on the remote server to be sure, but it sounds like the password has expired for one of these three accounts: your admin user, WDeployAdmin or WDeployConfigWriter

The WDeploy* users aren't meant to expire, but some domain policies enforce it. If it is indeed one of those, you might need to use my blog entry to reset the passwords in IIS: http://blog.richardszalay.com/2013/08/02/manually-creating-wdeployadmin-and-wdeployconfigwriter/

Upvotes: 1

Related Questions