Midtown Computer Systems Enterprise

Convenient web based access to our favorite computer related Usenet groups.
MCSE.MS is not affiliated with Microsoft corporation, Cisco corporation, Oracle, CompTIA or any other vendor.
Check our Computer Hardware forum | Cell Phones reviews

Go Back  MCSE > Microsoft software reviews > Windows XP reviews > WMI
This is Interesting: Free Computer Magazines Now Free shipping to

WMI microsoft.public.windowsxp.wmi

 
 
Thread Tools Display Modes
  #1  
Old 04-01-04, 05:33 AM
J
how would you find the host name for a remote computer based on logon id
Hi,

I need to know how you would find an ip address / host
name for a remote computer within my domain based on the
current user loged on. ie, what is the ip address for
user "bob's" computer.

Cheers J
  #2  
Old 04-03-04, 03:20 AM
Matt Hickman
Re: how would you find the host name for a remote computer based on logon id
"J" <anonymous@discussions.microsoft.com> wrote in message news:<16a7101c417c3$7ed052e0$a501280a@phx.gbl>...

> I need to know how you would find an ip address / host
> name for a remote computer within my domain based on the
> current user loged on. ie, what is the ip address for
> user "bob's" computer.


I am not in a place where I can check this. But it may be possible
by using WINS.

When a user logs on to a Windows computer, his/her user ID is
registered as a NetBIOS name on the computer's adapter using the
suffix <03> as the 16th character (it is blank filled between the
last character of the ID and the suffix). This is done for the
messenger service (so you can "net send" to the UserID)

NetBIOS names are registered in WINS. There is a "check name"
subcommand in Netsh for WINS:

netsh wins server check name

that looks like it will return the IP address of the adapter
the name is registered to. Unfortuately I am not in a place I
can test this.

Note: this is a unique name and only one will exist on the network.
So if the user is logged on several places, only one will show up.

Plan B. create/modify the logon script to write a file. Put it in
a known location with a name based on the userid. Write the IP address
and host name where the user is logging on from as the contents.

Plan C. AD keeps track of the last logon time and logoff times.
Perhaps the schema could be modified to keep track of the last
computer the ID logged on from as well.

--
Matt Hickman
His clothes looked like a cross between a Harlem Sunday and a
picnic. (Dan Davis describing a doctor's attire in the year 2000)
Robert A. Heinlein (1907 - 1988)
_The Door Into Summer_ 1956
  #3  
Old 01-17-05, 11:45 AM
ChipB ChipB is offline
Junior Member
Join Date: Jan 2005
Re: how would you find the host name for a remote computer based on logon id
Quote:
Originally posted by J
Hi,

I need to know how you would find an ip address / host
name for a remote computer within my domain based on the
current user loged on. ie, what is the ip address for
user "bob's" computer.

Cheers J

I have attached the file that I use for this. Its called NTNAME.EXE and I place this in my windows dir. I had zip up the file.

At a commond prompt I enter NTNAME CHIP or whatever the login ID is. It returns a workstation name.
 


Popular forums
A+ (A Plus) Windows 2000 Active directory Exchange 2000 information store
Network+ Windows XP Security Exchange 2000 server administration
MCSE .NET Web services SQL Server
Cisco certification ASP .NET SQL 2000 Programming
Windows 2000 Registry .NET XML Viruses


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:27 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright MCSE braindumps 2003-2006