[英]Azure DevOps Pipeline CMD task [error]Access is denied
I was trying to kill a process CJobs.exe using agent job command line execution task in Azure release pipeline.我试图在 Azure 发布管道中使用代理作业命令行执行任务来终止进程 CJobs.exe。
My command is:我的命令是:
start /b cmd /c taskkill /IM "CJobs.exe" /F
exit
but it is giving me this error:但它给了我这个错误:
##[error]ERROR: The process "CJobs.exe" with PID 12569 could not be terminated.
Reason: Access is denied.
So if any one knows solution for this problem, please help.因此,如果有人知道此问题的解决方案,请提供帮助。
ask if more details required in comments.询问评论中是否需要更多详细信息。
In my case this error was solved when I did this configuration on the Azure Pipeline Agent service: I selected the option "Allow service to interact with desktop".在我的情况下,当我在 Azure 管道代理服务上进行此配置时,此错误已解决:我选择了“允许服务与桌面交互”选项。
Configuration Services Azure Pipeline Agent配置服务 Azure 管道代理
In this way, after restart the service, the pipeline executed successful.这样,重启服务后,管道执行成功。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.