Solved

user names of other computers

Posted on 2002-04-17
6
157 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
Comment Utility
By using ADSI
0
 
LVL 43

Accepted Solution

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

Expert Comment

by:Dmitriy
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
0
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
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
Comment Utility
Maybe "close" was not the right word, i meant "maybe related to".
Cheers
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

772 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