Allen,

I am looking at the functions you posted and we can do alot more with kix than I thought was possible. Thanks for the links!!!

I see you wrote the function on retrieving the Clientname from the RDP session. Is there a reason to separate the code by the type of server you are connecting to? It looks like a lot of well thought out work, I am just failing to see a need for all that code when this seems to work. What am I missing?

If @TSSESSION=1
$CompName = %CLIENTNAME%
else
$CompName = @WKSTA
ENDIF