Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the IP addresses of some computers on my network. Is there any command line tool like PsExec, which can take the IP Address as input and find out the username of the currently logged in user? I can install stuff on my workstation, but not the others. I can also run Metasploit / NMap / any other such program on my workstation.

share|improve this question
    
oops sorry mpez0, I forgot to specify, this is for Windows machines. – Neil May 26 '10 at 11:39
up vote 4 down vote accepted

for windows boxes get psLoggedOn - tells you who is currently signed into the box via console/rdp and who is connected via network shares.

share|improve this answer
    
Oh awesome, theres a PsTool for it. I feel stupid. Anyhow, do these PsTools work on the default Windows XP configuration, without requiring anything to be installed on the remote computer? – Neil May 26 '10 at 11:41
    
Correct. Firewall or disabling WMI will get in the way but often the windows firewall even when on contains an exception for WMI. – MikeJ Jun 11 '10 at 18:02

Try this:

wmic.exe /node:IP-or-HostName ComputerSystem Get UserName

Example:

wmic.exe /node:172.28.1.100 ComputerSystem Get UserName

Output:

UserName
DOMAIN\User
share|improve this answer
1  
Worked for me. I needed to run cmd as domain Administrator or else I got an error "Access is denied". – Otiel Jan 22 '15 at 16:01

Check out MetaLAN

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .