Azure devops 未能安装';VisualStudioRemotedPloyer&x27;从服务可执行文件路径VisualStudioRemoteDeployer.exe

Azure devops 未能安装';VisualStudioRemotedPloyer&x27;从服务可执行文件路径VisualStudioRemoteDeployer.exe,azure-devops,azure-pipelines,azure-pipelines-release-task,Azure Devops,Azure Pipelines,Azure Pipelines Release Task,无法从服务可执行文件路径VisualStudioRemoteDeployer.exe安装“VisualStudioRemoteDeployer” 错误跟踪 System.AggregateException: Failed to install 'VisualStudioRemoteDeployer8a9e167d-96ee-45c0-9a2c-6251509937e6' from service executable path VisualStudioRemoteDeployer.exe .

无法从服务可执行文件路径VisualStudioRemoteDeployer.exe安装“VisualStudioRemoteDeployer”

错误跟踪

System.AggregateException: Failed to install 'VisualStudioRemoteDeployer8a9e167d-96ee-45c0-9a2c-6251509937e6' from service executable path VisualStudioRemoteDeployer.exe . Consult the logs below:
2018-09-14T13:25:32.8643473Z Exception calling "SetRight" with "2" argument(s): "OpenPolicy failed: 5"
2018-09-14T13:25:32.8643473Z  CategoryInfo :NotSpecified: (:) [], MethodInvocationException
2018-09-14T13:25:32.8643473Z  FullyQualifiedErrorId :Exception
2018-09-14T13:25:32.8643473Z  ---> System.Management.Automation.RemoteException: Exception calling "SetRight" with "2" argument(s): "OpenPolicy failed: 5"
2018-09-14T13:25:32.8643473Z    --- End of inner exception stack trace ---
2018-09-14T13:25:32.8643473Z    at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable)
2018-09-14T13:25:32.8643473Z    at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.InstallServiceInternal(String serviceSourcePath, String serviceName, String destinationFileName)
2018-09-14T13:25:32.8643473Z    at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.InstallService(String serviceSourcePath, String serviceName, String destinationFileName)
2018-09-14T13:25:32.8643473Z    at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__24.MoveNext()
2018-09-14T13:25:32.8643473Z ---> (Inner Exception #0) System.Management.Automation.RemoteException: Exception calling "SetRight" with "2" argument(s): "OpenPolicy failed: 5"<---
System.aggregateeexception:未能从服务可执行文件路径VisualStudioRemoteDeployer.exe安装“VisualStudioRemoteDeployer 8A9E167D-96ee-45c0-9a2c-6251509937e6”。查阅以下日志:
2018-09-14T13:25:32.8643473Z使用“2”参数调用“SetRight”时发生异常:“OpenPolicy失败:5”
2018-09-14T13:25:32.8643473Z类别信息:未指定:(:)[],方法调用异常
2018-09-14T13:25:32.8643473Z完全合格的错误ID:异常
2018-09-14T13:25:32.8643473Z-->System.Management.Automation.RemoteException:使用“2”参数调用“SetRight”时发生异常:“OpenPolicy失败:5”
2018-09-14T13:25:32.8643473Z---内部异常堆栈跟踪结束---
2018-09-14T13:25:32.8643473Z在Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage,Boolean WriterResultToLog,Boolean isCancellable)
2018-09-14T13:25:32.8643473Z在Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.InstallServiceInternal(字符串serviceSourcePath、字符串serviceName、字符串destinationFileName)
2018-09-14T13:25:32.8643473Z在Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.InstallService(字符串serviceSourcePath、字符串serviceName、字符串destinationFileName)
2018-09-14T13:25:32.8643473Z在Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.d_24.MoveNext()上

2018-09-14T13:25:32.8643473Z-->(内部异常#0)System.Management.Automation.RemoteException:使用“2”参数调用“SetRight”时发生异常:“OpenPolicy failed:5”当用户没有完全的管理员权限或没有运行服务的权限时,会引发错误。用户必须能够远程设置“作为服务登录”权限

1) 检查他们用于连接到远程计算机的用户是否对目标计算机具有完全管理员权限

2) 如果用户已经是“作为服务登录”和“本地管理组”的一部分,并且用于部署的用户是本地用户(不是域用户),我建议-

         1) Try to use the domain join user
或 2) 必须禁用本地帐户的UAC筛选才能访问远程WinRM服务。您可以参考此文档以了解相同的信息。(更多高级详细信息可在“使用Windows远程管理”中找到)


如果您在远程任务上使用powershell时看到此错误,请尝试使用任务的最新版本3.*,您将无法解决此问题

我们遇到了相同的问题。我们在目标服务器上使用了一个本地帐户,他也是一个本地管理员,应该可以。当我在管道中使用machinename\username指定帐户时,它不起作用。但当我指定了。\username时,它就像一个符咒。我猜domain\username格式是为实际的域帐户保留的,您不能出于任何原因指定servername\username,因为这样它就开始在广告中查找servername部分,很明显它在那里没有运气

希望这能帮助一些人