Re: Printing in Terminal Services

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

The easiest way to check if it is working is to open up a cmd window within a session and type:

set clientname

This should return CLIENTNAME=<clientname>

Here is sample VBScript:

<code>

Set WshShell = WScript.CreateObject("WScript.Shell")

strClientName = WshShell.ExpandEnvironmentStrings("%CLIENTNAME%")

If Not strClientName = "RDP Client" Then Wscript.Echo(strClientName)

</code>

Thanks.

-TP

SysT wrote:
Hello TP,

Thanks again for your reply, I have a feeling we are not referencing
the variable you mentioned correctly, could you please give me an
example of how you would reference the variable in a VBScript, if
possible??


Thanks for all your help so far.

PS we are using a mix of clients from Win XP SP2 to Linux based and
none of them show the client name.
.



Relevant Pages

  • Re: Lynne Lyons is harassing me
    ... *clients* insight that matters. ... feeling, is can see that you are feeling this way". ... from doctors and therapists, ostensibly because she got very little ...
    (sci.psychology.psychotherapy)
  • Re: Lynne Lyons is harassing me
    ... *clients* insight that matters. ... feeling, is can see that you are feeling this way". ... from doctors and therapists, ostensibly because she got very little ...
    (sci.psychology.psychotherapy)
  • Re: Lynne Lyons is harassing me
    ... *clients* insight that matters. ... feeling, is can see that you are feeling this way". ... from doctors and therapists, ostensibly because she got very little ... Like if a head banger is banging their head. ...
    (sci.psychology.psychotherapy)
  • Re: Post Guitar Delivery Depression
    ... It doesn't have to be guitars. ... I get the same feeling when I've closed ... Most of my clients are nice folks and you bond with ...
    (rec.music.makers.guitar.acoustic)