We help IT Professionals succeed at work.
Get Started

Cannot read user environment variables within Citrix Xenapp 6

Supracom asked
Last Modified: 2012-05-11
Dear Experts,

I'm trying to script some stuff to configure a user's printer settings based on the physical location (subnet) of a workstation.

I've found a great tool called "ReconnAct" that is started in a loginscript. This tool creates 2 variables under the "user environment variables" called CURRENT_CLIENTIP and CURRENT_CLIENTNAME. I can use these variables to compare somebody's subnet so I can change his printing preferences accordingly.

After I login I can see that these variables are indeed created (visible in the system properties->Environment Variables"). However, if i try to read them from a script, they seem to be non-existent. Also, when I type the SET command in a commandprompt these values do not appear.

Does Citrix somehow invoke with these settings or am I missing something else?

The server is a Windows Server 2008 R2 with Citrix Xenapp 6, all 64 bit.

Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE