Cannot read user environment variables within Citrix Xenapp 6

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.

Thanks
SupracomAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

APNFSSCCommented:
I would normally create a citrix policy that is applied to a subnet that creates the printers.

So you would create a policy for each subnet and inside each policy you would have the printers for that subnet and then apply it only to that subnet or range.

0
SupracomAuthor Commented:
Hi APNFSSC,

Thanks for your response. However, creating printers is not the only thing I would like to do. I must also import some config files and load various registry entries.

So, any other ideas?

Kind regards
0
SupracomAuthor Commented:
I ended up using Kixstart to read out the user environment variables direct from the registry. Works very well, just had to dig in on how to do that.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SupracomAuthor Commented:
Found another way of fixing this myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Citrix

From novice to tech pro — start learning today.