VMware {code} Community
KTB2012
Contributor
Contributor

Unable to read environment variable

we are trying to use a domain authentication to read a environment variable from the guest vm. the user never logged in guest vm. looks like vmware was calling LoadUserProfile which internally try to create temporary user profiles  folders. we see bunch of folders under C:\user\Temp.* after calling this api couple of times we can't read the env anymore. because windows reaches temporary profiler folder limit i guess. Can some one help to see why vmware is not calling unloaduserprofile all the times?

[2020-04-05T20:32:08.383Z] [ warning] [VCGA] VGAuthImpersonateImpl: failed to load profile for user 'admin\svc_actifiosky2'

[2020-04-05T20:32:08.383Z] [ warning] [vix] VixToolsTranslateVGAuthError: error code 0x1 has no translation

[2020-04-05T20:32:08.383Z] [ warning] [vix] VixToolsImpersonateUser: impersonation failed (1)

[2020-04-05T20:32:08.383Z] [ message] [vix] VixToolsReadEnvVariables: opcode 187 returning 1

[2020-04-06T20:31:58.046Z] [ message] [vix] VixTools_ProcessVixCommand: command 187

[2020-04-06T20:31:58.077Z] [ warning] [VCGA] [function VGAuthLoadUserProfile, file d:/build/ob/bora-10402285/bora-vmsoft/vgauth/lib/impersonateWin32.c, line 114], NetUserGetInfo() failed with error 2221 for user 'admin\svc_actifiosky2'

[2020-04-06T20:31:58.092Z] [ warning] [VCGA] [function VGAuthLoadUserProfile, file d:/build/ob/bora-10402285/bora-vmsoft/vgauth/lib/impersonateWin32.c, line 119], LoadUserProfile() failed for user 'admin\svc_actifiosky2', [Win32 Error = 2] The system cannot find the file specified.

[2020-04-06T20:31:58.092Z] [ warning] [VCGA] VGAuthImpersonateImpl: failed to load profile for user 'admin\svc_actifiosky2'

[2020-04-06T20:31:58.092Z] [ warning] [vix] VixToolsTranslateVGAuthError: error code 0x1 has no translation

[2020-04-06T20:31:58.092Z] [ warning] [vix] VixToolsImpersonateUser: impersonation failed (1)

[2020-04-06T20:31:58.108Z] [ message] [vix] VixToolsReadEnvVariables: opcode 187 returning 1

0 Kudos
1 Reply
KTB2012
Contributor
Contributor

+ adding vmware tools version 

[2020-03-24T12:05:02.742Z] [ message] [vmsvc] Log caching is enabled with maxCacheEntries=4096.

[2020-03-24T12:05:02.742Z] [ message] [vmtoolsd] Tools Version: 10.3.5.7752 (build-10430147)

[2020-03-24T12:05:02.789Z] [ message] [vmtoolsd] Plugin 'hgfsServer' initialized.

[2020-03-24T12:05:02.789Z] [ message] [vmtoolsd] Plugin 'hgfsUsability' initialized.

[2020-03-24T12:05:02.789Z] [ message] [vix] VixTools_Initialize: Toolsd running as user 'SYSTEM'

[2020-03-24T12:05:02.789Z] [ message] [vix] QueryVGAuthConfig: vgauth usage is: 1

0 Kudos