错误1920服务无法启动.验证您是否具有启动系统服务的足够特权 [英] Error 1920 service failed to start. Verify that you have sufficient privileges to start system services

查看:1445
本文介绍了错误1920服务无法启动.验证您是否具有启动系统服务的足够特权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们创建了一个自定义Windows服务.部署程序包是在InstallShield中完成的,安装提示输入服务登录帐户的用户名和密码.

We have created a custom windows service. The deployment package is done in InstallShield and the installation prompts for the user name and password for the service Log On account.

在各种Windows 7(专业版)和Windows 8计算机上进行安装时,我们没有任何问题,但是在尝试部署到Windows 7 Ultimate计算机上时出现1920错误.我们尚未确认问题是与操作系统还是我们尝试安装此操作系统的特定计算机有关.

We have had no issues at all installing on various Windows 7 (Professional) and Windows 8 machines, but we get the 1920 error when trying to deploy to a Windows 7 Ultimate machine. We have not yet confirmed whether the issue is to do with the OS or the specific machine that we are trying to install this on.

始终通过右键单击并以管理员身份运行"来运行安装程序,并且用户(运行安装程序的用户和提供凭据的登录用户)都是计算机上的管理员.通常,安装该服务的登录用户和运行该服务的登录用户是相同的.

The installer is always run by right-clicking and "Run as Administrator", and the users (both, the user running the installer and the Logon User for which the credentials are supplied) are administrators on the machine. Usually the logged in user installing the service, and the Logon user running the service are the same.

这是我们尝试过的事情.

Here are the things we have tried.

  1. 已验证登录用户是Administrators的成员.
  2. 验证用户帐户设置与它可以在其上运行的另一台计算机完全相同.
  3. 已通过控制面板"进行了验证-管理工具-本地安全策略-本地策略-安全选项=再次与工作计算机匹配.
  4. 确保已应用所有Windows更新.
  5. 验证Windows Management Instrumentation服务正在运行.重新启动它.
  6. 重新启动计算机,然后重试.
  7. 在服务配置文件中添加了"generatePublisherEvidence"元素. (服务无法启动错误1920 )
  1. Verified the Logon user is a member of Administrators.
  2. Verified the user account settings are exactly the same as another machine where it works.
  3. Verified from Control Panel - Administrative tools - Local Security Policy - Local Policies - Security Options = that these again match machine where it works.
  4. Ensured that all windows updates have been applied.
  5. Verified that the Windows Management Instrumentation Service is running. Restarted it.
  6. Rebooted the machine, then tried again.
  7. Added "generatePublisherEvidence" element in the service configuration file. (Service failed to start error 1920)

但以上方法均无效.

希望其他人也遇到类似问题并已解决..

Hope that someone else has come across a similar issue and has a fix..

更新:

我也尝试了以下方法:

  • 打开SecPol.msc
  • 导航到本地策略/用户权限分配
  • 找到作为服务登录"策略并添加服务帐户

推荐答案

1920是通用错误代码,表示服务未启动.我的预感是这样的:

1920 is a generic error code that means the service didn't start. My hunch is this:

http://blog.iswix.com/2008/09/different-year -same-problem.html

要确认,请中止安装程序,然后重试,忽略,取消对话框...进入services.msc并手动设置用户名和密码.如果您收到一条消息,指示用户已被授予登录为服务权限,请尝试在"MSI"对话框上单击重试",然后查看它是否开始.

To confirm, with the installer on the abort, retry, ignore, cancel dialog up... go into services.msc and set the username and password manually. If you get a message saying the user was granted logon as service right, try hitting retry on the MSI dialog and see if it starts.

它也可能缺少在代码中引发的依赖关系或异常.

It could also be missing dependencies or exceptions being thrown in your code.

这篇关于错误1920服务无法启动.验证您是否具有启动系统服务的足够特权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆