尝试通过Powershell启动Windows服务时出错

时间:2014-07-02 18:00:37

标签: powershell windows-services

所以我尝试使用Powershell启动Windows服务。我安装的服务很好,但是当我拨打Start-Service -Name $name时,我收到了以下错误。

Start-Service : Service 'IncidentManagementService (IncidentManagementService)' cannot be started due to the following error: Cannot start service IncidentManagementService on computer '.'.

我有一个作为管理员运行的powershell,我也试过去.exe文件的属性,并检查“以管理员身份运行”无济于事。

如果有人能够明确说明为什么服务没有启动,我将不胜感激。

1 个答案:

答案 0 :(得分:0)

在我的情况下,服务被禁用...所以我收到该错误的原因。

相关问题