By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,641 Members | 1,446 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,641 IT Pros & Developers. It's quick & easy.

Find machine OU

P: n/a
I want to convert the following vbscript so it works in VB.Net 2003. Does
anyone know how to do this?

Dim WksData, CompInfo, ParentOU
Set WksData = CreateObject("AdSystemInfo")
Set CompInfo = GetObject("LDAP://" & WksData.ComputerName)
ParentOU = CompInfo.Parent

Are there any good resources out there for VB.Net and accessing Active
Directory? I am just beginning to work with VB.Net and need some
help/tutorials to get started.

Thanks.
Mark
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

System.DirectoryServices namespace has all the types you need to interact
with AD.

Some examples could be found here:
http://www.ondotnet.com/pub/a/dotnet...activedir.html
http://www.ondotnet.com/pub/a/dotnet...activedir.html

HTH

"Mark" <mn******@neb.rr.com> wrote in message
news:ey**************@TK2MSFTNGP12.phx.gbl...
I want to convert the following vbscript so it works in VB.Net 2003. Does
anyone know how to do this?

Dim WksData, CompInfo, ParentOU
Set WksData = CreateObject("AdSystemInfo")
Set CompInfo = GetObject("LDAP://" & WksData.ComputerName)
ParentOU = CompInfo.Parent

Are there any good resources out there for VB.Net and accessing Active
Directory? I am just beginning to work with VB.Net and need some
help/tutorials to get started.

Thanks.
Mark

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.