|
This simple WMI script can stop Windows service on local or remote computer using WMI admin objects.
The script cannot stop service depending on another service, for example you cannot stop IISADMIN when W3SVC is running,
you have to stop both services, depending service second
StopService parameters
See also StopService method of Win32_Service
See alsofor 'Stop service using WMI/VBScript' article Restart windows service using WMI/VBScriptSimple script to stop and start windows service on local or remote computer.Start service using WMI/VBScriptSimple script to start 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.
or
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_vbs-wmi-stop-service/" Title="Simple script to stop service on local or remote computer." >Stop service using WMI/VBScript</A> Do you like it? Rate me on LinkedIn |
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts