Solved

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

Posted on 2012-04-02
8
1,266 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 7

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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.

735 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