使用SC.exe设置服务凭据密码失败 [英] Using SC.exe to set service credentials password fails

查看:177
本文介绍了使用SC.exe设置服务凭据密码失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题在过去已被问过,但没有提供满意的答案。

I know this question has been asked in the past, but a satisfactory answer has not been provided.

我使用SC命令配置服务。

I am using the SC command to config the credentials for a service.

SC.exe config "SERVICE NAME" obj= "domain\user" password= "password"

这已成功完成,但是当我启动服务时,它会失败
执行登录。 >
[ NET START服务名称]

This completes successfully, but when I start the service, it fails to perform the login.
[NET START "service name"]

如果我手动更新 services.msc ,然后
当我启动服务它工作正常。

If I manually update ONLY the password from the services.msc, then when I start the service it works fine.

我有数百个服务器更新此更改在部署的中间,
所以手动干预不是一个选项。

I have hundreds of servers to update this change occurs in the middle of a deployment, so manual intervention is NOT an option.

我已经尝试使用配置更新登录帐户,然后另一个配置命令

I have tried using the config to update the login account and then another config command for the password.

从所有帐户中, SC.exe 不适用于密码,Microsoft没有帮助。

From all accounts, the SC.exe does not work for passwords and Microsoft has NO help.

IDEAS?

推荐答案

在特定帐户下通过正常路由从服务属性窗口自动授予帐户作为服务权限登录。当您使用sc.exe时,您还必须授予用户登录作为服务权限。

When you configure a service to run under a specific account via the normal route from the service properties windows automatically grants the account the log in as service right. When you use sc.exe you also have to grant the user the log on as service right.

登录为服务权

这篇关于使用SC.exe设置服务凭据密码失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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