CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2011
    Posts
    9

    Question How many users logged on to windows7 machine?

    Due to windows 7 Remote desktop behavior multiple person can logged on to the system.
    They wont log off and just disconnect the machine. So some services will be hold by them and the next user who logged on will face trouble.
    In cmd, using the command quser /server:machinename, we can find the user who is still logged in.
    But is there any way to find in vb6?

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How many users logged on to windows7 machine?

    use the SHELL command to execute a command. (You need to supply the full path, though)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Feb 2014
    Posts
    2

    Re: How many users logged on to windows7 machine?

    If your using a Windows Server OS, use the Terminal Services Manager from the Administrative Tools.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured