Solved

user names of other computers

Posted on 2002-04-17
6
160 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

856 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