Windows NT Identifying connection events to console session

  • Thread starter Thread starter kalevet
  • Start date Start date
K

kalevet

Hi,

Is there any way to identify the connection and disconnection of a user to a
console session, at the server level? Were I work several users have to
connect from time to time to the console of a Win2003 server. I'd like to
write something that will notify the users if they snatched the console
session while it was in use by another user. For that, I need somehow to get
the connection and disconnection events, if there's such a thing.

Any Ideas?
 
It's been a while since I've done this but Windows used to tell you when
you were taking the console session if someone was logged in.

Jeff Pitsch
Microsoft MVP - Terminal Server
Citrix Technology Professional
Provision Networks VIP

Forums not enough?
Get support from the experts at your business
http://jeffpitschconsulting.com

kalevet wrote:
> Hi,
>
> Is there any way to identify the connection and disconnection of a user to a
> console session, at the server level? Were I work several users have to
> connect from time to time to the console of a Win2003 server. I'd like to
> write something that will notify the users if they snatched the console
> session while it was in use by another user. For that, I need somehow to get
> the connection and disconnection events, if there's such a thing.
>
> Any Ideas?
>
 
It does, unless multiple persons share the same account (i.e. all
log on as Administrator).
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

Jeff Pitsch <Jeff@Jeffpitschconsulting.com> wrote on 22 aug 2007
in microsoft.public.windows.terminal_services:

> It's been a while since I've done this but Windows used to tell
> you when you were taking the console session if someone was
> logged in.
>
> Jeff Pitsch
> Microsoft MVP - Terminal Server
> Citrix Technology Professional
> Provision Networks VIP
>
> Forums not enough?
> Get support from the experts at your business
> http://jeffpitschconsulting.com
>
> kalevet wrote:
>> Hi,
>>
>> Is there any way to identify the connection and disconnection
>> of a user to a console session, at the server level? Were I
>> work several users have to connect from time to time to the
>> console of a Win2003 server. I'd like to write something that
>> will notify the users if they snatched the console session
>> while it was in use by another user. For that, I need somehow
>> to get the connection and disconnection events, if there's such
>> a thing.
>>
>> Any Ideas?
 
The following notification mechanisms are built into Windows for this
purpose:

For "normal" applications: WTSRegisterSessionNotification

For services: HandlerEx

The documentation on WTSRegisterSessionNotification is a good starting
point:

http://msdn2.microsoft.com/en-us/library/aa383841.aspx

I hope this helps.

Helge

On 22 Aug., 14:02, kalevet <kale...@discussions.microsoft.com> wrote:
> Hi,
>
> Is there any way to identify the connection and disconnection of a user to a
> console session, at the server level? Were I work several users have to
> connect from time to time to the console of a Win2003 server. I'd like to
> write something that will notify the users if they snatched the console
> session while it was in use by another user. For that, I need somehow to get
> the connection and disconnection events, if there's such a thing.
>
> Any Ideas?
 
Back
Top