Solved

user login from which computer name

Posted on 2004-08-08
7
179 Views
Last Modified: 2010-04-23
In a Windows 2000 domain, is there a way for me to check the users currently are login from which Computer name. Currently I am also trying to write a program either using VB.Net or VB to see the user is currently login from which Computer. This will help me locate the users computer faster and more efficient for troubleshooting from remote. Else I will have to guide the user how to find out thier Computer name or IP addresss. Thanks
0
Comment
Question by:stchow1
7 Comments
 

Expert Comment

by:cwi2k
ID: 11746130
hi im not sure about checking computers for users that are logged in but if you put a program on each computer with a label that has the computer name you can do it like this

Label1.Text = Environment.MachineName()

this will display the computer name using netbios

thats in vb.net

if you are using vb you can use winsock (which i dont think is on vb.net to get the information)

Label1.Caption = Winsock1.LocalHostName

put a winsock control onto your form with the name winsock1

hope that helps
0
 
LVL 19

Expert Comment

by:Desp
ID: 11746612
The following code will popup the computer names in the network.....

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
        Dim root As DirectoryEntry = New DirectoryEntry("WinNT:")
        Dim dDom As System.DirectoryServices.DirectoryEntry
        Dim dPC As System.DirectoryServices.DirectoryEntry
        For Each dDom In root.Children

            For Each dPC In dDom.Children
                If dPC.SchemaClassName = "Computer" Then
                    MessageBox.Show(dDom.Name + "/" + dPC.Name)
                End If
            Next
        Next
End Sub


..............for complete net send application in VB.NET, download the app from here:
http://www.vbfrance.com/article.aspx?Val=8391
0
 
LVL 19

Expert Comment

by:Desp
ID: 11746615
0
 

Author Comment

by:stchow1
ID: 11747508
If I know the user login ID, is there a way for me to find out, currently the user ID is login from which Computer name or IP address on my Workstation. I am trying to write a VB.Net or VB program to get this info. Preferably not to install any software on the user PC. I am supporting users from various country and it may not be pratical. Or you suggest an alternative way so I may have the info on my Workstation.  
0
 
LVL 4

Accepted Solution

by:
BradB3030 earned 250 total points
ID: 11753099
is Environment.User.Identity.Name what you're looking for?

When you actually put it on the Web, you'd need to turn Anonymous Access off and turn on something like Windows Authentication.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now