Results 1 to 5 of 5

Thread: [RESOLVED] [2005] - List of Windows User

  1. #1

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Resolved [RESOLVED] [2005] - List of Windows User

    Hello

    I need some help, about the windows users.

    There's some way to get a list of all logged in users or all users in windows xp?

    And if exists, can i logoff one of them by code?
    Last edited by mickey_pt; Oct 5th, 2007 at 05:08 AM. Reason: Again my bad english... :S

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [2005] - List of Windows User

    For the First One : Refer this one
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - List of Windows User

    Thanks

    But after knowing the names i still can't close the account...

    I read somewhere that i can get the account by using WMI (WIn32_UserAccount\Win32_Account)

    I can use the Logoff.exe to close the session, but i need the ID of the session that i want to close, to use it. Any one knows where can i get that ID?

    The ID that i'm talking about is in the taskmanager, the tab Users.

    Thanks
    Last edited by mickey_pt; Oct 5th, 2007 at 07:17 AM.

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [2005] - List of Windows User

    I dont know u can able to logoff a remote user. Read this one
    Please mark you thread resolved using the Thread Tools as shown

  5. #5

    Thread Starter
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2005] - List of Windows User

    Yes i can, tested, the "only" thing i need is the ID of the session.
    I found some info how to get the ID's. Using the WTSEnumerateSessions....

    I'll see if i can do something with this

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