Conversation
|
I have a few questions and concerns about this change. |
| return reader.execute(psPath + "powershell", "-NoProfile", "-NonInteractive", "-Command", psCommand); | ||
| ProcessInfo checkPpid() { | ||
| if (hasWmicStandardSystemPath64()) { | ||
| return execute("CMD", "/A", "/X", "/C", |
There was a problem hiding this comment.
You can execute wmic directly, no need to use the cmd cruft.
| + "wmic process where (ProcessId=" + ppid + ") get " + WMIC_CREATION_DATE); | ||
| } else { | ||
| isPowershell = true; | ||
| return execute("CMD", "/A", "/X", "/C", |
|
@Tibor17 Can you rebase please? |
@michael-o
@olamy
@slawekjaranowski
The fix should be like this instead of making tons of unnecessary changes with Java 9. Microsoft removed WMIC command in Windows 11 and added PowerShell, so this is what we support as well.
If we are participating on this discussion in the mailing list and we are still not finished clarifying the things, we cannot push make a proactive commit since it is very childish and then it will be finished by the revert as before.