473,499 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Active Directory and VB.Net

Hi all,

I'm trying to write an app that will "popup" a nice form when the
user's mail submenu is selected at the AD console so I can add, modify,
delete and check the mail addresses and aliases of that user.

In vbscript, in order to bind to the "selected user" at the AD Users &
Computers console, the Wscript.Arguments is used.

ex. strDN = Wscript.Arguments(0)
Set objUser = GetObject("LDAP://" & strDN)

I've found out how to bind to a specific user (with DirectoryEntry) in
vb.net but can't see how to "catch" the DN of the selected user.

Is there a way to accomplish something similar with vb.net?

Many thx,
Elena

Jul 5 '06 #1
1 1332
You want to pick up this book:

http://www.amazon.com/gp/product/032...lance&n=283155
--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net
---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm

le***********@gmail.com wrote:
Hi all,

I'm trying to write an app that will "popup" a nice form when the
user's mail submenu is selected at the AD console so I can add, modify,
delete and check the mail addresses and aliases of that user.

In vbscript, in order to bind to the "selected user" at the AD Users &
Computers console, the Wscript.Arguments is used.

ex. strDN = Wscript.Arguments(0)
Set objUser = GetObject("LDAP://" & strDN)

I've found out how to bind to a specific user (with DirectoryEntry) in
vb.net but can't see how to "catch" the DN of the selected user.

Is there a way to accomplish something similar with vb.net?

Many thx,
Elena
Jul 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3687
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
1
4731
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
2389
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any...
1
3875
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
9
388
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
0
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.