473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Find machine OU

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
1 4438
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Arne | last post by:
Hi, Probably an easy answer to this, but I have not been able to figure it out. How can I find the IP-address of the machine that my Java-program is running on ? Could not find any methods in...
2
by: rcamarda | last post by:
Hello, Our SQL machine is getting bogged down by some sort of stored procedure and I am trying to find which one. My SQLdiagnostic software (by Idera) that monitors our SQL server, says that these...
2
by: Mike Metzger | last post by:
I've been running an Access2000 database for a couple years on a Win2k machine fine. We tried to copy the database over to another machine that already had Access2000 installed. When we tried to...
12
by: Souljaz | last post by:
Hi, how to find IP address. Thanks
34
by: priyanka | last post by:
Hi, I was wondering if we could parse or do something in the executable( whose source language was C). How can I use some scripting language like perl/python to find out the information about...
21
by: codergem | last post by:
One common answer is that all compilers keep the size of integer the same as the size of the register on a particular architecture. Thus, to know whether the machine is 32 bit or 64 bit, just see...
4
by: Dameon | last post by:
Hi All, I have a process where I'd like to search the contents of a file(in a dir) for all occurences (or the count of) of a given string. My goal is to focus more on performance, as some of the...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
2
by: sunny | last post by:
I need to find my server over the network!!! so my installer installs client on one machine and server on other machine on the same network. How can i do that??? How can my client know where my...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.