msdeploy stop working, getting error Code: ERROR_USER_NOT_ADMIN

五迷三道 提交于 2019-12-12 01:22:51

问题


I am using msdeploy to deploy codes to dev server. this morning it stops working. and I am getting ERROR_USER_NOT_ADMIN. nothing changed, at least not that I know of.

abc\jqin, this user is a domain account, its a local admin. why am I still getting ERROR_USER_NOT_ADMIN

Deploy: "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="C:\NetBuild\Packages\IRViewerSvc\IRViewerSvc.zip" -dest:iisApp=IRViewerSvc,computerName=tvw-irwebsvc,username="abc\jqin",password=******** Info: Using ID '51e98b9d-456e-4c7e-8f1a-c696c240f431' for connections to the remote server. EXEC : error Code: ERROR_USER_NOT_ADMIN [C:\NetBuild\BuildScript\IRViewerSvc.build]
More Information: Connected to 'tvw-irwebsvc' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'tvw-irwebsvc'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN. Error : The remote server returned an error : (401) Unauthorized. [C:\NetBuild\BuildScript\IRViewerSvc.build] EXEC : error count: 1. [C:\NetBuild\BuildScript\IRViewerSvc.build] C:\NetBuild\BuildScript\IRViewerSvc.build(71,5): error MSB3073: The command ""C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="C:\NetBuild\Packages\IRViewerSvc\IRViewerSvc.zip" -dest:iisApp=IRViewerSvc,computerName=tvw-irwebsvc,username="abc\jqin",password=********" exited with code -1. Done Building Project "C:\NetBuild\BuildScript\IRViewerSvc.build" (deploy target(s)) -- FAILED.


回答1:


Try search mmc and run it click on File add or remove snap-ins, select Local Users and Groups hit ok. Click on the User uncheck everything and check only Password never expires.

Now go to Groups add new group if it does not exists MSDepSvcUsers, Double click on it and add your User as a member.

Go to Services and restart the Web Deployment Agent Service.

Now try and run your MSDeploy.

I hope this was helpful. Trosago



来源:https://stackoverflow.com/questions/30809785/msdeploy-stop-working-getting-error-code-error-user-not-admin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!