Locate Users Logged Into a Win2003 Server Network



eugenefl
07-10-2005, 02:08 AM
Greetings.

This inquiry is fairly straight forward which may have a complex result.

Question: On a Win2003 Server ADS Domain, is there an easy way of
determining where a user is logged in? Is there a way of determining their IP
address?

Thanks in advance for any assistance you can offer.

Eugenio

David H. Lipman
07-10-2005, 02:08 AM
From: "eugenefl" <eugenefl@discussions.microsoft.com>

| Greetings.
|
| This inquiry is fairly straight forward which may have a complex result.
|
| Question: On a Win2003 Server ADS Domain, is there an easy way of
| determining where a user is logged in? Is there a way of determining their IP
| address?
|
| Thanks in advance for any assistance you can offer.
|
| Eugenio


Well from the LOGs you can determine the workstation name. Using the workstation name you
can use...
'nbtstat -a workstation_name'

The results will include; NetBIOS info, IP Address and MAC address.

Example:
nbtstat -a dlipman-2

Local Area Connection:
Node IpAddress: [192.168.1.99] Scope Id: []

NetBIOS Remote Machine Name Table

Name Type Status
---------------------------------------------
DLIPMAN-2 <00> UNIQUE Registered
DOMAIN_A <00> GROUP Registered
DLIPMAN-2 <03> UNIQUE Registered
DLIPMAN-2 <20> UNIQUE Registered
DOMAIN_A <1E> GROUP Registered
LIPMAN <03> UNIQUE Registered

MAC Address = 00-E0-18-7F-74-84

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm

Torgeir Bakken \(MVP\)
07-10-2005, 02:08 AM
eugenefl wrote:

> This inquiry is fairly straight forward which may have a complex result.
>
> Question: On a Win2003 Server ADS Domain, is there an easy way of
> determining where a user is logged in? Is there a way of determining
> their IP address?
Hi,

Take a look at the command line tool PsLoggedOn in the free PsTools
suite, it may work for you:

http://www.sysinternals.com/ntw2k/freeware/pstools.shtml


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Locate Users Logged Into a Win2003 Server Network