如何让Presto使用特定的用户名和密码创建Windows服务?

问题描述:

如何使用特定的用户名和密码创建Windows服务?我会发布我尝试过的,但我不确定从哪里开始。如何让Presto使用特定的用户名和密码创建Windows服务?

通常有三个步骤,以实际创建服务:

enter image description here

首先,实际创建服务:

/C SC创建“$(服务名) $(serviceNameSuffix)“binPath =”$(servicePath)“

enter image description here

二,配置用户名和密码:

/C sc配置 “$(服务名)$(serviceNameSuffix)” OBJ = “$(帐户)” 密码=“$ (密码)”开始=自动

enter image description here

三,启动服务:

enter image description here

正如你所看到的,你只是使用Windows的命令提示符下各做这些。无论您在命令提示符处做什么,都可以在Presto中完成。

+0

非常好!谢谢! – Jim 2012-07-06 04:01:56