Windows NT/2000/XP - is a user logged in???

  • Troubadour
  • Graduate
  • Graduate
  • User avatar
  • Posts: 137
  • Loc: Melbourne, Australia

Post 3+ Months Ago

Hi there I am hoping someone might be able to answer this question for me...

is it possible to find out if a user is logged into windows or not?

Doesn't matter which user it is, I just need like a boolean.

i have managed to find a few things through googling and they all seem to suggest the sane thing, dredging the profiles portion of the registry...

however, if a profile crashes, this method will still report a user is logged in, even though it is not the case.

Thanks in advance.
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

usrstat.exe on the resourse kit may help; it may send an exit status code you can capture. Otherise, look for a port of the UNIX who command.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.