Solved

user login from which computer name

Posted on 2004-08-08
7
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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 …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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