简体   繁体   中英

Start windows service on remote machine using NSIS script

Can I start a service on remote machine using NSIS script. I know we can use:

sc \\machine start servicename

through DOS prompt. But can we do the same in NSIS? Can SimpleSC be used for this?

You could use exec .

ExecWait 'net start $servicename'

Edit: Oh, you meant starting the service on the remote machine...well:

ExecWait 'sc \\machine start servicename'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM