Example:
Because of the installation of MSYS or other components or edited manually, the %PATH% variable looks like this
PATH=...;C:\MinGW\msys\1.0\bin;C:\MinGW\bin;...;%SystemRoot%\system32;%SystemRoot...
In command line the where.exe command gives the following result:
It looks like the build agent internally tries to use "where cmd" command to locate the "cmd.exe" command interpreter and takes the first result which is incorrect.
I observe the following in procmon on the BYOC machine:
Environment:
Example: Because of the installation of MSYS or other components or edited manually, the %PATH% variable looks like this
PATH=...;C:\MinGW\msys\1.0\bin;C:\MinGW\bin;...;%SystemRoot%\system32;%SystemRoot...
In command line the where.exe command gives the following result:
It looks like the build agent internally tries to use "where cmd" command to locate the "cmd.exe" command interpreter and takes the first result which is incorrect. I observe the following in procmon on the BYOC machine:
Possible Fix: Do one of the following: