Re: Printing in Terminal Services
- From: "TP" <tperson.knowspamn@xxxxxxxxxxxxxxx>
- Date: Mon, 12 Dec 2005 12:53:38 -0500
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.
.
- References:
- Re: Printing in Terminal Services
- From: TP
- Re: Printing in Terminal Services
- From: TP
- Re: Printing in Terminal Services
- Prev by Date: Re: Supported Applications
- Next by Date: Re: Printing on a Lexmark X5250
- Previous by thread: Re: Printing in Terminal Services
- Next by thread: Re: Domain logon of ologed user as logon in Remote Deskop
- Index(es):
Relevant Pages
|