This simple WMI script can start Windows service on local or remote computer using WMI admin objects.
See also StartService method of Win32_Service
for 'Start service using WMI/VBScript' articleRestart windows service using WMI/VBScriptSimple script to stop and start windows service on local or remote computer.
Stop service using WMI/VBScriptSimple script to stop service on local or remote computer.
Copyright and use this code
The source code on this page and other samples at https://www.motobit.com/tips/ are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_vbs-wmi-start-service/" Title="Simple script to start service on local or remote computer." >Start service using WMI/VBScript</A>
Do you like it? Rate me on LinkedIn
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts