【发布时间】:2015-11-27 17:13:27
【问题描述】:
我已使用服务帐户将部署配置到 Web 服务器。在目标计算机上启用了远程 powershell,并且该帐户已添加到远程管理用户组中。
我发起了一个发布并且出现了以下错误。如果我将服务帐户添加到 Web 服务器上的本地管理员组,那么它会成功。我可以通过在服务帐户下远程访问 Web 服务器并尝试调用 get-service 来重现相同的错误。
System.AggregateException:
Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
CategoryInfo :NotSpecified: (:) [Get-Service], InvalidOperationException
FullyQualifiedErrorId :System.InvalidOperationException,Microsoft.PowerShell.Commands.GetServiceCommand
---> System.Management.Automation.RemoteException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.AcquireMutexOwnerShip(String serviceName, String destinationPath, Int64 deploymentHeartbeatTimeoutSec)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__14.MoveNext()
有谁知道服务帐户需要最低权限才能使其正常工作?我想避免将该帐户添加到管理员组。
【问题讨论】:
标签: powershell-remoting ms-release-management