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

查看:192
本文介绍了错误 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. 已验证登录用户是管理员的成员.
  2. 已验证用户帐户设置与另一台使用它的机器完全相同.
  3. 通过控制面板 - 管理工具 - 本地安全策略 - 本地策略 - 安全选项进行验证 = 这些再次匹配其工作的机器.
  4. 确保已应用所有 Windows 更新.
  5. 已验证 Windows Management Instrumentation 服务正在运行.重新启动它.
  6. 重新启动机器,然后再试一次.
  7. 在服务配置文件中添加了generatePublisherEvidence"元素.(服务无法启动错误 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天全站免登陆