Home All Groups Group Topic Archive Search About

VS 2005 and Terminal Services Detection

Author
19 Nov 2007 4:22 PM
GAZ
Is it possible to detect whether an application is started on a regular
computer (xp, vista, etc.) or through terminal services?

Basically, we would like to prevent users from starting our application
through terminal services.

Thanks for any answers and/or ideas.

BR,

GAZ

Author
19 Nov 2007 4:41 PM
GAZ
Silly question really.

System.Windows.Forms.SystemInformation.TerminalServerSession

GAZ


Show quote
"GAZ" <g**@gaz.com> wrote in message
news:22D3B27A-5A8D-4E40-843F-6AC8DFE1B7F0@microsoft.com...
> Is it possible to detect whether an application is started on a regular
> computer (xp, vista, etc.) or through terminal services?
>
> Basically, we would like to prevent users from starting our application
> through terminal services.
>
> Thanks for any answers and/or ideas.
>
> BR,
>
> GAZ
Author
19 Nov 2007 7:19 PM
r norman
Show quote
On Mon, 19 Nov 2007 17:41:47 +0100, "GAZ" <g**@gaz.com> wrote:

>"GAZ" <g**@gaz.com> wrote in message
>news:22D3B27A-5A8D-4E40-843F-6AC8DFE1B7F0@microsoft.com...
>> Is it possible to detect whether an application is started on a regular
>> computer (xp, vista, etc.) or through terminal services?
>>
>> Basically, we would like to prevent users from starting our application
>> through terminal services.
>>
>> Thanks for any answers and/or ideas.

>Silly question really.
>
>System.Windows.Forms.SystemInformation.TerminalServerSession
>

Not at all silly if you didn't know that property existed.

I would like to allow terminal server sessions but log the home IP
address or computer name for audit trail purposes.  I can get the
address or computer name for the terminal session server.  How do I
get the values for the computer being used by the end user?  I don't
care if it is a trivial or silly question -- it is one I don't know
the answer to.

AddThis Social Bookmark Button