|
I'm trying to pull the CLIENTNAME information out of HKLM\Software\Citrix\ICA\Session. So, my commands I'm trying to use are:
DIM $ClientName $CLIENTNAME = READVALUE("HKLM\Software\Citrix\ICA\Session", "ClientName")
As a test, I tried to just write it to another part of the registry...
WriteValue("HKCU\Software\Test", "KixTest", $CLIENTNAME, "REG_SZ")
The value gets created properly, but the actual data in the value isn't written. If I manually set $CLIENTNAME before the WriteValue, then it works properly.
The flip side of this, is I wanted to get a "permanent" environment variable set with this data for subsequent processes. I know it will not be visible in the current environment, so my hope was to find a way to write it to the registry (to create a system level environment variable - {easy}) a fire off a wm_changenotify system message in order to force windows to revaluate the environment {hard}.
My preference is to stick with Kix, because this is going to be a pre-flight execution script for Desktop Authority.
Thanks :-)
|