Getting pc name in local network

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

Getting pc name in local network

Post by Anonymous »

whenever a user logs on to a pc, two message aliases are automatically added in the list 1. PC name 2. User name
is there a way that i give User name and in return i get the PC name on which user is sitting,,,,,
im intended to do this bcoz one will be able to get where his/her friend is sitting in the network,..... n there will be no need to walk through all labs to check where his/her required person is.....
To retrieve message aliases list on local pc we have NetMessageNameEnum
with "servername" parameter as NULL, but for geting message aliases list of other pc on network, one has to be a member of local administrators....
plz anyone guide me how to get it....
im totally confused....


Archived topic from Iceteks, old topic ID:2799, old post ID:22933
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Getting pc name in local network

Post by Red Squirrel »

Only thing I can think of is to use a good naming convention that includes the room number. For example PC12A46 would be the 12th computer in room 46 of the A wing. (PC 12 A 46 )

Archived topic from Iceteks, old topic ID:2799, old post ID:22934
Honk if you love Jesus, text if you want to meet Him!
Anonymous

Getting pc name in local network

Post by Anonymous »

In our university we have 5 labs with abt 90 pcs in each lab and naming convention of pc's is like lab01-15 lab02-10 etc like this
but problem is that i wana get PCname through User name ....
i mean to say user will give me an id,,,, ill try to get the message aliases list of that id nd will get the pc name frm there......
in ma mind this is the only solution but problem is how to get that mesage list of remote pc... bcoz local administrator rights are required...
isnt there anything like spoofing for getting messge aliases list of that hell pc on remote end

Archived topic from Iceteks, old topic ID:2799, old post ID:22937
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Getting pc name in local network

Post by Red Squirrel »

Through whatever program you're getting the message from, it should be possible to get the PC name too. For example with netsend it says from what PC it comes from, so you should be able to do the same with whatever program you're using/making.

Archived topic from Iceteks, old topic ID:2799, old post ID:22938
Honk if you love Jesus, text if you want to meet Him!
Locked