Getting Client Details

There is often a need to get specific information from the thin client that is logging on to a Terminal Server. To that end, there are several environment variables that are available.

While in a Terminal Server session, spark up a DOS box and enter the command SET. Some of the vars of interest are:

%CLIENTNAME% - This is the thin client's NetBIOS name.

%SESSIONNAME% - This would be 'CONSOLE' if logged on at the console or something like 'ICA-tcp#16' if via an ICA session.

The remaining environment vars are your standard NT vars, non-specific to Terminal Services.

If you require additional information then that will require some helper apps or DLL libraries. This I will cover in the next post.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.