无法从服务可执行文件路径 VisualStudioRemoteDeployer.exe 安装 'VisualStudioRemoteDeployer'
Failed to install 'VisualStudioRemoteDeployer' 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"<---
当用户没有完整的管理员权限或无权使用 运行 服务时会抛出错误。用户必须能够远程设置“作为服务登录”权限。
1) 检查他们用来连接远程机器的用户是否在目标机器上具有完全管理员权限。
2) 如果用户已经是“作为服务登录”和“本地管理员组”的一部分,并且用于部署的用户是本地用户(不是域用户),我会建议 -
1) Try to use the domain join user
或
2) 必须禁用本地帐户的 UAC 过滤才能访问远程 WinRM 服务。您可以参考此文档。 (更高级的详细信息可以在此处找到“使用 Windows 远程管理”)
如果您在远程任务上使用 powershell 看到此错误,请尝试使用任务的最新版本 3.*,您将无法解决此问题
我们遇到了同样的问题。我们在目标服务器上使用了一个本地帐户,该帐户也是本地管理员,应该没问题。当我使用 machinename\username 在我的管道中指定帐户时,当我使用 .\username 时它没有 work.But,它就像一个魅力。我猜格式 domain\username 是为实际域帐户的帐户保留的,你不能出于任何原因指定 servername\username 因为它开始在 AD 中寻找服务器名部分并且显然它不会运气那里。
希望这对一些人有所帮助。
无法从服务可执行文件路径 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"<---
当用户没有完整的管理员权限或无权使用 运行 服务时会抛出错误。用户必须能够远程设置“作为服务登录”权限。
1) 检查他们用来连接远程机器的用户是否在目标机器上具有完全管理员权限。
2) 如果用户已经是“作为服务登录”和“本地管理员组”的一部分,并且用于部署的用户是本地用户(不是域用户),我会建议 -
1) Try to use the domain join user
或 2) 必须禁用本地帐户的 UAC 过滤才能访问远程 WinRM 服务。您可以参考此文档。 (更高级的详细信息可以在此处找到“使用 Windows 远程管理”)
如果您在远程任务上使用 powershell 看到此错误,请尝试使用任务的最新版本 3.*,您将无法解决此问题
我们遇到了同样的问题。我们在目标服务器上使用了一个本地帐户,该帐户也是本地管理员,应该没问题。当我使用 machinename\username 在我的管道中指定帐户时,当我使用 .\username 时它没有 work.But,它就像一个魅力。我猜格式 domain\username 是为实际域帐户的帐户保留的,你不能出于任何原因指定 servername\username 因为它开始在 AD 中寻找服务器名部分并且显然它不会运气那里。
希望这对一些人有所帮助。