473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get the list of logged on machines in a domain from within that domain



I want to get the list of computers with users logged on in my domain
using C# as the language .
Can some one of you plese tell me how exactly I can perform this
Thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
5 3910
Hi there... One easy solution can be

net view > c:\loggedon.txt

at the command prompt and then manipulate the text file any way you want

Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com


"Eranga" <km***@yahoo.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...


I want to get the list of computers with users logged on in my domain
using C# as the language .
Can some one of you plese tell me how exactly I can perform this
Thanks in advance
*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2


Hello Angel,
Thanks for your reply. But I want to use this in a program and feed the
results in to an asp.net web application. Do you think the net view can
be used in that sense.?
Thanks in advance for any helpful comments and tips.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3

"Angel J. Hernández M." <an**********@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP14.phx.gbl...
Hi there... One easy solution can be

net view > c:\loggedon.txt

at the command prompt and then manipulate the text file any way you want

Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com


Note that this returns the computers on the network that have their
"Netbios" name broadcasted, that doesn't mean there are currently inteactive
users logged on as asked by OP.

Willy.
Nov 17 '05 #4

"Eranga" <km***@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...


Hello Angel,
Thanks for your reply. But I want to use this in a program and feed the
results in to an asp.net web application. Do you think the net view can
be used in that sense.?
Thanks in advance for any helpful comments and tips.
*** Sent via Developersdex http://www.developersdex.com ***


Unless you are running in a domain (be it NT4 or AD), there is no easy way
to know the machines that have users logged on.
If you have a domain infrastructure, you can use System.DirectoryServices to
query the machine names in the domain, when you have a list of machines you
can use System.Management and WMI to query the logon sessions running on
each box individually.

Willy.
Nov 17 '05 #5

Thanks for your help
Yes I am workin in the domain it self. I want to get the machines with
users logged on in this domain.what is the method you thought of when
you wrote
"Unless you are running in a domain (be it NT4 or AD), there is no easy
way
to know the machines that have users logged on."
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eranga | last post by:
I want to get the list of computers with users logged on in my domain using C# as the language . Can some one of you plese tell me how exactly I can perform this Thanks in advance *** Sent via...
3
by: BobTheDatabaseBoy | last post by:
.... got: win2K, v8.1.6 login to win2K is to the network: user; bob13, domain; foo it's a win2K domain. i then login to my local db as db2admin. LIST APPLICATIONS fails with security error. ...
1
by: Piotrek Stachowicz | last post by:
Hi, I'd like to display list of all MS SQL servers which are available on the network (I write application which uses database located on one of the machines in my LAN). Has anyone got any idea...
5
by: Mel Weaver | last post by:
Hi, I'm trying to get a list of Users or Computers currently logged into a domain? Thanks Mel
6
by: John Dalberg | last post by:
I want to automate the process of logging into an intranet. I want to pull out the username of the Windows user logged into the machine running the browser and use the username in my app. How can I...
1
by: gnusmsa | last post by:
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the...
1
by: rahulya007 | last post by:
Hi, I am trying to implement single sign-on like feature in my website (running on IIS and ASP). A windows Authenticated logged in user will be directed to a welcome screen directly without asking...
1
by: pcloches | last post by:
I'm having a very difficult time with some of our new pages. We've moved to a web farm, and it seems in spurts it will come where parts of my page think the user is logged in, and parts think the...
4
by: JB | last post by:
I am trying to get a list of all the active computers running on my domain. I'm writing some remote management style software with WMI, which works fine when i know the computer name, but i just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.