I make a doc, it calls powershell.exe to do something.
When I submit it to windows XP, the IWbemServices_ExecMethod api can be monitored like this:
{
"category": "misc",
"status": 1,
"stacktrace": [],
"pid": 1924,
"api": "IWbemServices_ExecMethod",
"return_value": 0,
"arguments": {
"inargs": {
"CurrentDirectory": null,
"CommandLine": "powershell -w hidden -enco IldvcmxkISIgfCBPdXQtRmlsZSBoZWxsby50eHQ=",
"ProcessStartupInformation": {
"YSize": null,
"FillAttribute": null,
"CreateFlags": null,
"Title": null,
"XCountChars": null,
"EnvironmentVariables": null,
"X": null,
"XSize": null,
"YCountChars": null,
"ErrorMode": 0,
"WinstationDesktop": null,
"Y": null,
"ShowWindow": null,
"PriorityClass": null
}
},
"method": "Create",
"flags": 0,
"outargs": {
"ProcessId": 2004,
"ReturnValue": 0
},
"class": "Win32_Process"
},
"time": 1578377503.109427,
"tid": 1928,
"flags": {},
"uniqhash": 0,
"type": "apicall"
},
But IWbemServices_ExecMethod can not be monitored in windows 7.
If you monitor it by apimonitor in windows 7, it can be monitored. Like this,

Maybe monitor has an error.
Here is the file:
test_vb_powershell.zip
Dont worry, that is just a clean file for test.
I make a doc, it calls powershell.exe to do something.
When I submit it to windows XP, the IWbemServices_ExecMethod api can be monitored like this:
{ "category": "misc", "status": 1, "stacktrace": [], "pid": 1924, "api": "IWbemServices_ExecMethod", "return_value": 0, "arguments": { "inargs": { "CurrentDirectory": null, "CommandLine": "powershell -w hidden -enco IldvcmxkISIgfCBPdXQtRmlsZSBoZWxsby50eHQ=", "ProcessStartupInformation": { "YSize": null, "FillAttribute": null, "CreateFlags": null, "Title": null, "XCountChars": null, "EnvironmentVariables": null, "X": null, "XSize": null, "YCountChars": null, "ErrorMode": 0, "WinstationDesktop": null, "Y": null, "ShowWindow": null, "PriorityClass": null } }, "method": "Create", "flags": 0, "outargs": { "ProcessId": 2004, "ReturnValue": 0 }, "class": "Win32_Process" }, "time": 1578377503.109427, "tid": 1928, "flags": {}, "uniqhash": 0, "type": "apicall" },But IWbemServices_ExecMethod can not be monitored in windows 7.
If you monitor it by apimonitor in windows 7, it can be monitored. Like this,

Maybe monitor has an error.
Here is the file:
test_vb_powershell.zip
Dont worry, that is just a clean file for test.