get computername for known username

Reply

Join Date: Jul 2006
Posts: 23
Reputation: Seba Sama is an unknown quantity at this point 
Solved Threads: 1
Seba Sama Seba Sama is offline Offline
Newbie Poster

get computername for known username

 
1
  #1
Sep 8th, 2006
can someone hlep me with this ?
i have the user names. now i need to find the name of the machine they are logged on to.
how can i do this? i mean
known : username, domain
needed : machine name

pls help i really need this one.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: get computername for known username

 
0
  #2
Sep 8th, 2006
I don't understand what you are doing. They are logged into a server, and you want to know which machine it's from?
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 23
Reputation: Seba Sama is an unknown quantity at this point 
Solved Threads: 1
Seba Sama Seba Sama is offline Offline
Newbie Poster

Re: get computername for known username

 
0
  #3
Sep 9th, 2006
so : we have a large network - about 1,2k computers. i need to check on witch pc the user xyz is logged on. then i need to send some data to that pc. but this is not so hard so i just need to know find a way to programmaticaly find out the name of the computer.
i have found an application that is doing this but i need a code (or at least the way to do it) to include it in my own application.
Last edited by Seba Sama; Sep 9th, 2006 at 2:14 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: get computername for known username

 
0
  #4
Sep 9th, 2006
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 23
Reputation: Seba Sama is an unknown quantity at this point 
Solved Threads: 1
Seba Sama Seba Sama is offline Offline
Newbie Poster

Re: get computername for known username

 
0
  #5
Sep 11th, 2006
netsh wins cannot run on windows workstations. i need my code to be run from a workstation.
maybe i'll find a way to do it.
if this application can, that means there is a way to do it. but i'm not good enough to "hack" it to see what it does...
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: get computername for known username

 
0
  #6
Sep 11th, 2006
I know one solution, but it's not what you want to do. You could basically build a server app, in VB, which accepts connections on one specific machine. Then, each workstation would have another VB program, that would connection through the network to that server app, and upload the computer name, the IP address, and the logged in user. Then, when they log out, simple connect again, and have them removed from that database, but that's a lot of overhead for something that should be fairly simple. I'll keep looking around.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC