Solved

How to identify the user by using Workstation name or IP address ?

Posted on 2012-04-02
8
1,288 Views
Last Modified: 2012-04-25
Hi People,

What is the best way to identify the remote user of a laptop or desktop given only the IP address or the Workstation name ?

I've tried QWINSTA /SERVER:(IP or WORKSTATIONname) but it is not working with access denied error ? but it works for Windows Server.

Any help please ?
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 6

Assisted Solution

by:atsvirginia
atsvirginia earned 125 total points
ID: 37799204
If you need to find a username but only have an ip address, if you use active directory (AD) then you can use the following method to find out the username:

At the command prompt enter the following command:
nbtstat –a ipaddress
Where ipaddress is the ip address.
This will list the machine name using that ip address.
Then run the following command:
net view /domain:ad > somefile.txt
Where ad is the name of the domain you want to search and somefile.txt is the name of the file to contain the output.
This will generate a list of every machine and who is logged in.
Open the output file and search for the machine name determined in step 1 (the username will be listed next to this).


This solution was from the following links:

http://geekswithblogs.net/TimH/archive/2006/05/03/77070.aspx
http://forums.techarena.in/networking-security/1272062.htm
0
 
LVL 17

Assisted Solution

by:Tony Massa
Tony Massa earned 250 total points
ID: 37799252
You can use PSLoggedon to see who's logged on locally.
http://technet.microsoft.com/en-us/sysinternals/bb897545

Example:  psloggedon.exe -l \\computername (or IP address)

loggedon v1.33 - See who's logged on
Copyright ¬ 2000-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

Usage: psloggedon [-l] [-x] [\\computername]
    or psloggedon [username]
-l     Show only local logons
-x     Don't show logon times

Open in new window

0
 
LVL 8

Author Comment

by:Senior IT System Engineer
ID: 37799334
thanks for the update mate,

but it failed:

PsLoggedon v1.34 - See who's logged on
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Error opening HKEY_USERS for \\Workstation324
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 17

Expert Comment

by:Tony Massa
ID: 37799344
What account are you running with, and are you scanning Windows 7 computers?  Are the computers remote (i.e. connected via VPN?)

I'm trying to determine if the Windows firewall is on for these systems via GPO when they are not "domain connected"
0
 
LVL 17

Assisted Solution

by:Tony Massa
Tony Massa earned 250 total points
ID: 37799348
0
 
LVL 26

Accepted Solution

by:
Leon Fester earned 125 total points
ID: 37801747
The easiest way is to access the WMI database.
You can do this directly from the command line.

Just copy and paste the code below with the neccessary adjustments for the IP or WORKSTATIONname.

wmic /node:(IP or WORKSTATIONname) computersystem get username

Open in new window

0
 
LVL 26

Expert Comment

by:Leon Fester
ID: 37801754
0
 
LVL 26

Expert Comment

by:Leon Fester
ID: 37801778
nvm the last link, wrong question.
OOPS!
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question