How to verify environment variable created by VBScript in XenApp for User session?

In many scenarios, in XenApp, we write VBScript to create USER environment variable. We publish this VBScript in XenApp and then we launch it through Web interface. Now, to test it, we need to verify if this user environment variable is created or not? How to verify it? Answer is below:

1. Note: Run the below steps while user “session” is still running. If user is logged off, the USER details will be deleted.

2. Run Regedit.exe

3. Go to HKEY_USERS and find long ID for USER.

4. Expand the long ID and click on the node “Environment”. This node will display all the USER environment variables.


To verify, if the long ID as shown above belongs to the particular user, go to the node “Volatile Environment” and see the key “USERNAME” as shown below:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s