Home All Groups Group Topic Archive Search About

Active Directory and VB.Net

Author
5 Jul 2006 8:51 AM
lenapostantzi
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

Author
5 Jul 2006 2:43 PM
Joe Richards [MVP]
You want to pick up this book:

http://www.amazon.com/gp/product/0321350170/104-3819194-4171100?v=glance&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



lenapostan***@gmail.com wrote:
Show quoteHide quote
> 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
>