Solved

getting windows user information in VB.NET

Posted on 2002-06-27
4
158 Views
Last Modified: 2010-05-02
hi!!
i want to get the information saved in the active directory.. of the user currently logged in at the work station. like.. his group name, username, full name etc.in VB.net

any1 havin gthe information regarding this. plz reply as early as possiible..
0
Comment
Question by:zulfi_must
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
rpai earned 50 total points
ID: 7114916
Try this:-
Dim objNet As Object
Set objNet = CreateObject("WScript.NetWork")
Debug.Print objNet.UserName
Debug.Print objNet.ComputerName
Debug.Print objNet.UserDomain
0
 
LVL 5

Expert Comment

by:rpai
ID: 7115080
Also, please attend to your open questions:-
Questions Asked 8
Last 10 Grades Given  
Question Grading Record 0 Answers Graded / 0 Answers Received

Thanks!
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7964607
Hi zulfi_must,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rpai's comment(s) as an answer.

zulfi_must, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 8014838
Per recommendation, force-accepted.

Netminder
EE Admin
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Excel - Save a copy of work book 13 89
VBA: Personal Macro Retain/Highlight/Remove values in a selected column 4 33
TT Auto Dashboard 13 95
Zip Folders Using Chilkat Routines 1 58
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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 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