如何从命令行更改Windows服务的用户凭据? [英] How to change user credentials of windows service from command line?
本文介绍了如何从命令行更改Windows服务的用户凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从命令行更改Windows服务的用户凭据?
How to change user credentials of windows service from command line?
推荐答案
sc.exe config "Service Name" obj= "DOMAIN\User" password= "password"
Windows服务的快捷方式设置登录凭据»jonathanmalek.com 。
@MattT指出,在Windows Server 2008 R2上,您还必须添加 type = own
。
@MattT points out that on Windows Server 2008R2, you also have to add type= own
.
这篇关于如何从命令行更改Windows服务的用户凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文