Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
how to list the username of the computer which are connect in a network?
Posted 7-Feb-13 5:42am
Comments
Sergey Alexandrovich Kryukov at 7-Feb-13 11:48am
   
Did you try to find out? Honestly, it would not be too hard. :-)
—SA
aspnet_regiis -i at 7-Feb-13 15:10pm
   
Best way is to ask the operator in english instead of vb.net.. Which one will you prefer ?
ShantaShan at 8-Feb-13 7:15am
   
can i get the coding?
ShantaShan at 8-Feb-13 7:19am
   
i had try to find out but i get confuse???
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can use WMI to get all records of the type Win32_UserAccount. Please see:
http://en.wikipedia.org/wiki/Windows_Management_Instrumentation[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394507%28v=vs.85%29.aspx[^].
 
This is how to write it in C#: http://stackoverflow.com/questions/5247798/get-list-of-local-computer-usernames-in-windows[^].
 
For a currently logged user, use: System.Environment.UserName: http://msdn.microsoft.com/en-us/library/system.environment.username.aspx[^].
 
Problem solved.
 
—SA
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,656
1 Sergey Alexandrovich Kryukov 6,490
2 CPallini 5,310
3 George Jonsson 3,584
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web02 | 2.8.140921.1 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100