Solved

user login from which computer name

Posted on 2004-08-08
7
181 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

11 Experts available now in Live!

Get 1:1 Help Now