LOGIN LOGOFF PROBLEM

From: prem (kpremk@rediffmail.com)
Date: 09/30/02


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



Relevant Pages

  • RE: SP1 7 DHCP Challenges?
    ... Now I understand that the IP configuration result on 11th Sep was from ... but cannot ping to Server. ... Can you ping to the Workstations from server? ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: anti virus for sbs
    ... the two-user license for the corporate product was ... If it is Norton Antivirus, ... It is server-based and pushes out to the workstations (if you ... That's less than $200 per year to protect the server ...
    (microsoft.public.windows.server.sbs)
  • RE: Client machines randomly locking up when printing
    ... constant, it occurs every day but not on all workstations, seems like one day ... > is a server or client side issue. ... click the Copy button and paste the full content to the Newsgroup. ...
    (microsoft.public.windows.server.sbs)
  • Re: New SBS2003 install, WIN2k client cant access internet
    ... SBS 2K3 server uses ISA server rather than Proxy Server, ... installed MS Proxy Server 2.0 client on the client workstation, ... >> Server, Windows XP client workstations work fine, the Windows 2K client ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS Slow user logons problem
    ... You deleted both accounts and created new accounts for them (I also saw the ... Go to all workstations, log in as the Domain Admin and delete ALL profiles ... I have deleted the Reverse DNS zone on the SBS server and recreated it. ... Connection-specific DNS Suffix. ...
    (microsoft.public.windows.server.sbs)