title: Reading environment variables using VBScript or ActiveX on Citrix client
body: <p>I'm having troubles while accessing environment variables in an html page.
  I need to run a web application (php) on a Citrix server distribution.
  What I tried to do is the following VBScript code on my html body:</p>
  
  <pre><code>Set oShell = CreateObject( "WScript.Shell" )
  comp=oShell.ExpandEnvironmentStrings("%CLIENTNAME%")
  </code></pre>
  
  <p>It works as long as I login with my admin account (because of the IE running script permissions), but when I enter with the normal user account it doesn't work saying it can't create the object.
  The sad thing is that it's not possible to change the normal user profile. </p>
  
  <p>Does someone knows another way to get them?
  It's possible to install new software on the machine, but it should be called from a htlm website. 
  So I'm thinking if could be possible to create some kind of ActiveX or java applet to read those environment variables, but as I'm new on ActiveX/Applets I dont know If I'll need some kind of special setup for those permissions.</p>
  
  <p>Any help will be more than welcome! :)</p>