?
Solved

User account description field

Posted on 2009-12-22
2
Medium Priority
?
186 Views
Last Modified: 2012-05-08
I need a piece of VB script that queries the user account description filed in AD. We use the user account description as the search string of mapping department drives. I've tried using WScript.Network and ADSystemInfo with no luck. I've been doing VB for less than a day so keep it as easy to use a possible please
0
Comment
Question by:stu_evans99
2 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 2000 total points
ID: 26113186
Reference:
http://blogs.technet.com/heyscriptingguy/archive/2005/04/29/how-can-i-change-the-user-and-computer-account-description-attributes-each-time-a-user-logs-on.aspx
http://blogs.technet.com/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
MsgBox objUser.Description

Open in new window

0
 

Author Closing Comment

by:stu_evans99
ID: 31668989
Easy when you know how!!! Thanks for this.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

864 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