[英]Start windows service on remote machine using NSIS script
Can I start a service on remote machine using NSIS script. 我可以使用NSIS脚本在远程计算机上启动服务吗? I know we can use:
我知道我们可以使用:
sc \\machine start servicename
through DOS prompt. 通过DOS提示符。 But can we do the same in NSIS?
但是我们可以在NSIS中做同样的事情吗? Can SimpleSC be used for this?
可以使用SimpleSC吗?
You could use exec
. 您可以使用
exec
。
ExecWait 'net start $servicename'
Edit: Oh, you meant starting the service on the remote machine...well: 编辑:哦,你的意思是在远程计算机上启动服务...好吧:
ExecWait 'sc \\machine start servicename'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.