Getting network users

Hi all,
I need to know how to get all the users in LAN network.
I need to connect the windows server 2003 from on of the stations and get all the stations that are connected to the server.

Please help...
Regards...

[229 byte] By [Wasim] at [2008-2-15]
# 1
Hi Wasim,

Can you please be more specific with your scenario?

If you are just looking for all active connections on your Windows Server machine then you may want to try the command "netstat -a" from a command prompt. The output of this command is all connections currently established with your machine and the state of that connection.

More information on the netstat utility can be found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/html/wce50lrfNetstat.asp

1. Start -> run -> "cmd"
2. At prompt, type "netstat -a" and press Enter

MikeFlasko at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 2
Hi,
I want to build a tool to check witch users are now connected to the LAN network. The tool has to check the users from time to time, If some one logged in his workstation, then the too has to know on him, also the same with looged off users.

Can I use the "netstat -a" commant output in a code. Or there are other ays.

Please help...

Wasim at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 3
If I understand correctly you want an application that runs on your server and records who logs in/out? If so, I don't think the System.Net APIs are what you want for this.
MikeFlasko at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified