Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

up vote 3 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

Check out MetaLAN

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.