Solved

user names of other computers

Posted on 2002-04-17
6
158 Views
Last Modified: 2010-05-02
it is possible to find the computer names in a LAN thru netHood folder, is it possible to find the user names of those systems. if so how.
0
Comment
Question by:RanjiniPraba
6 Comments
 

Expert Comment

by:reynoldg
ID: 6947456
By using ADSI
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 50 total points
ID: 6947476
Have a look at this sample application http://www.btinternet.com/~vbadmincode/code/loggedon.zip
0
 
LVL 3

Expert Comment

by:Dmitriy
ID: 6947762
If you know VBScript, you can do the following:

UserName = shell.RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName")


Or here is what microsoft has in its utilities:
---------------------------------------------------
H:\>reg query /?

Command-line registry manipulation utility version 1.05.
Copyright Microsoft Corporation 1997.  All rights reserved.

REG QUERY RegistyPath [\\Machine] ["String"] [/S] [/size] [/list]

  RegistryPath  [ROOTKEY\]Key[\'ValueName']
    ROOTKEY     [ HKLM | HKCU | HKCR | HKU | HKCC ]
                Optional.  When omitted HKLM is assumed.
    Key         The full name of a registry key under the selected ROOTKEY.
    ValueName   The value, under the selected Key, to query.
                Optional.  When omitted all keys and values under the Key
                are listed.
                Enclose ValueNames that containg the \ character in single
                quotes.
  Machine       Name of remote machine - omitting defaults to current machine.
                Only HKLM and HKU are available on remote machines.
  /S, /s        Queries all subkeys.
  /size         Queries the size of RegistryPath
  /list         Search strings from RegistryPath

Examples:

  REG QUERY HKLM\Software\Microsoft\ResKit\Nt\Setup\InstallDir
  Displays the value of the InstallDir registry entry.

  REG QUERY HKLM\Software\Microsoft\ResKit\Nt\Setup /S
  Displays all keys and values under the Setup sub-key.

H:\>


0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6949047
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6949861
Richie, that won't give you user names for the logged in users on said machines which is what I understood to be the requirement. Of course if RanjiniPraba never comes back to this thread we can never know for sure!
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6950823
Maybe "close" was not the right word, i meant "maybe related to".
Cheers
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

24 Experts available now in Live!

Get 1:1 Help Now