LOGIN LOGOFF PROBLEM
From: prem (kpremk@rediffmail.com)
Date: 09/30/02
- Next message: Long Richard: "2000 pro security"
- Previous message: Tony Tachev: "Re: win 2k security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "prem" <kpremk@rediffmail.com> Date: Mon, 30 Sep 2002 16:01:50 +0530
Hi all,
I have problem , I want to know whether a given user is currently logon to
his domain or not. I have a win2000 server PDC and 10 workstations with
win2000 professonal o/s and I want to create a VB application that can be
ran on my PDC to know who are the users that are currently login into thier
workstations ( I do not want to list any Fileshare sessions or any other
kind of sessions that can be esatablished between the server and the clients
( workstations) )
I tried NetSessionENUM API and NetWRKSTAUserENUM functions ,
by using NetWRKSTAUserENUM I am getting the user lists of a particluar
workstation who are logged in since the reboot time , no matter if it is in
the logoff state ( say if usr1 is logged in and logged off after somet time
and usr2 has logged in and logged off , NetWRKSTAUserENUM is returning both
usr1 and usr2 )
and I also tried to use the the LASTLOGIN and LASTLOGOFF properties of the
USER object (IADSUSER) I am able to detect the LASTLOGIN time correctly but
not the LASTLOGOFF time
Hope you all got my problem correctly , please help me in solving the
problem
I am using win2000,VB6,ASP
thank you all
--prem
- Next message: Long Richard: "2000 pro security"
- Previous message: Tony Tachev: "Re: win 2k security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|