Plugins > vCenter Server 5.5.3 > VcGuestProcessManager > readEnvironmentVariableInGuest

Method readEnvironmentVariableInGuest(VcVirtualMachine vm, VcGuestAuthentication auth, String[] names)

Reads an environment variable from the guest OS

If the authentication uses interactiveSession, then the environment being read will be that of the user logged into the desktop. Otherwise it's the environment of the system user.




Name Type Description
vm VcVirtualMachine Virtual machine to perform the operation on.
auth VcGuestAuthentication The guest authentication data. See <a href="VcGuestAuthentication.html">VcGuestAuthentication</a>.
names String[] The names of the variables to be read. If not set, then all the environment variables are returned.