Symptoms:
If VMware tools versions between 9.10 (included) - 10.2.0 (excluded) is installed in Windows virtual machine,
ReadEnvironmentVariableInGuest API returns system variable irrespective of any user used by the
NamePasswordAuthentication data object.
For example:
- If Windows virtual machine with VMware tools versions prior to 9.10.0 is installed:
- User A logs off.
- Interactive session is set to false.
- Executing ReadEnvironmentVariableInGuest API by passing NamePasswordAuthentication parameter for user A.
- It returns environment variables for user A.
For example, value for variable TEMP is C:\Users\A\AppData\Local\Temp.
- Windows virtual machine with VMware tools versions between 9.10.0 (included)- 10.2.0(excluded) is installed:
- User A logs off.
- Interactive session is set to false.
- Executing ReadEnvironmentVariableInGuest API by passing NamePasswordAuthentication parameter for user A.
- It returns environment variables for system user.
For example, value for variable TEMP is C:\Windows\Temp.