NativeServices.RunWmiInstanceMethod
Method | |
---|---|
Module | NativeServices |
Library | Core |
Action | Run a WMI object method. |
Parameters |
|
| |
| |
NoteFor Available from v8.0. | |
| |
Additional parameters for the specific method call. Their names are prefixed with " | |
Return values | The accumulated output, if any, from the method invocation(s). |
Example | NativeServices.RunWmiInstanceMethod(Namespace:"root\\cimv2", Query:"SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'", AllInstances:true, Method:"Terminate", Param_Reason:"1"); |
Platforms |
|
Notes | Unlike the recommendation described for the RunWmiQuery method, " |