General discussion

Locked

Username of users on other computers

By r_vipani ·
i want to get the username of the other machines who has logged in. i can pass the IP address of that machine. this is urgent, i have code to get username of the current machine but not of the machines by its IP.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by uppulurivasu In reply to Username of users on othe ...

May be Windows scripting Host could help you.
You can also use netscan from soft perfect research to get the IP addresses.
May be after getting the IP addresses you may use your code to get the user name via the Active Directory Services in Windows or Via Samba PDC in Linux.

Collapse -

by r_vipani In reply to

thanxs for the reply but i have already tried it and its not working for me.
do u have have any API which can help me in solving this problem

Collapse -

by joaquim.carmona In reply to Username of users on othe ...

Two ways of doing it:
1) make a logon script (Ex. a bat file named getlogon.bat) with the following command: SET %USERNAME% > path_where_you_want\%COMPUTERNAME%.txt
2) Go to www.sysinternals.com, get pstools and execute the above command with psexec for each IP address machine we want.

Collapse -

by p_sripada In reply to Username of users on othe ...

i have used nbtstat -a ipaddress i m able to retrieve the username but its gets failed . its not working fine in windows 2003 server

Back to Networks Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums