?
Solved

user names of other computers

Posted on 2002-04-17
6
Medium Priority
?
167 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 200 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

850 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