node-wmi
node-wmi copied to clipboard
Add Support for Call
Since you're just calling wmic.exe as a child process, it should be easy enough to inject CALL after WHERE.
https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
CALL
Executes a method.
Example: SERVICE WHERE CAPTION='TELNET' CALL STARTSERVICE
Note To determine the methods available for a given class, use /?. For example, SERVICE WHERE CAPTION='TELNET' CALL /? lists the available functions for the service class.