Re: Check type TS protocol

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Gred
thanks for this vbs

Do you know show check client IP in RDP session?

I;ve script for iCA but don' work on RDP

Set objFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")
objFarm.Initialize(1)
For Each objSession In objFarm.Sessions
WScript.Echo "User name : " & objSession.UserName
WScript.Echo "IP Address: " & objSession.ClientAddress
Next


Michal


"Greg Moseley" <greg@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:002801c5f13d$f36f1690$6401a8c0@xxxxxxxx
> Michal,
>
> There is an environment variable set for each session %SESSIONNAME% that
> either begins RDP or ICA (RDP-tcp#1 for example). You could query this.
>
> Below is a quick bit of code for you to play with. Paste into Notepad
> and save as something.vbs
>
> I have tested it on a console and through an RDP session, haven't got an
> ICA session to hand to test.
>
> Hope it helps
>
> Greg
>
> //CODE START - REMOVE THIS LINE
> Dim wshShell
> Dim strSession
>
> Set wshShell = Wscript.CreateObject("Wscript.Shell")
> strSesType = Left(wshShell.ExpandEnvironmentStrings("%SESSIONNAME%"), 3)
>
> If strSesType = "Con" Then
> 'Script is running on the Server Console, so exit
> wScript.Echo "Console Session Found"
> wScript.Quit
> ElseIf strSesType = "ICA" Then
> 'ICA Session Found
> 'Launch your ICA Script Here
> wScript.Echo "ICA"
> ElseIf strSesType = "RDP" Then
> 'RDP Session Found
> 'Launch your RDP Script Here
> wScript.Echo "RDP"
> Else
> 'No Session Type Found
> wScript.Echo "None Found"
> wScript.Quit
> End If
> //CODE END - REMOVE THIS LINE
>
>
> -----Original Message-----
> From: Michal Ch [mailto:chmiel@xxxxxxxxxxxxxx]
> Posted At: 24 November 2005 20:43
> Posted To: microsoft.public.windows.terminal_services
> Conversation: Check type TS protocol
> Subject: Check type TS protocol
>
> Hi all
> On my TS server users will logon via RCP and ICA.
> Login script I must set different settings for RDP users and ICA users
> eg if user Tom login via RDP I must set settings A in registry but if
> iser
> Tom login via Citirx I must set - B in registry
> Do you know via vbs chceck type of connection?
>
> Have a nice day,
> Michal
>
>


.



Relevant Pages

  • Re: Check type TS protocol
    ... There is an environment variable set for each session %SESSIONNAME% that ... either begins RDP or ICA. ... ICA session to hand to test. ... If strSesType = "Con" Then ...
    (microsoft.public.windows.terminal_services)
  • Re: IS it possible?
    ... here is one example that works for RDP and ICA: ... I need to add a scan function whereby I want to attach a scanner, ... Will a USB scanner be seen in a session? ...
    (microsoft.public.dotnet.framework.windowsforms)
  • [NT] Cryptographic Flaw in RDP Protocol Can Lead to Information Disclosure
    ... The Remote Data Protocol (RDP) provides the means by which Windows systems ... The first involves how session encryption is implemented in certain ... An attacker who was able to eavesdrop on and record ...
    (Securiteam)
  • Re: Question about Home PC connected to SBS via VPN....
    ... it is far easier to address this idea if you use an RDP ... session to gain control of the PC at your office, or use a TS Apps server to ... the time you first authenticated and logon at the local machine. ... SBS in the manner that your PC at home first builds the VPN before beginning ...
    (microsoft.public.windows.server.sbs)
  • Re: RDP and encryption
    ... IF I was able to use Vista Ultimate as the RDP host and Vista premium as the Client, ... an ENCRYPTED RDP session. ...
    (microsoft.public.windowsxp.work_remotely)