You can't. Why would you use WMI for this, the framework has the
ServiceController class for this.
You can also shell-out to the sc.exe utility, which is obviously the easiest
solution.
Willy.
|
| Does anyone know how to pass Start Parameters to a service using WMI?
|
| The InvokeMethod on ManagementObject does not work.
|
| Rui
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.