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.