PC Review


Reply
Thread Tools Rate Thread

ADSI issues.....

 
 
RobofNZ
Guest
Posts: n/a
 
      26th Jul 2006
Hi Guys,

I'm getting very confused....

My test machine is stand alone so i don't expect it to return a big
list of available domains.

But why won't this return anything at all????

DirectoryEntry ds = new DirectoryEntry("WinNT:");

It doesn't error but doesn't return anything either....?

Why doesn't it return the local mahine?
If i add the machine name to the path it quite happily returns all its
services, users etc but it won't return a root listing???

Does anyone have any ideas please....
I'm trying to add a network browser to my app...

Many thanks,
Rob.

 
Reply With Quote
 
 
 
 
Marc Scheuner
Guest
Posts: n/a
 
      28th Jul 2006
>But why won't this return anything at all????
>
>DirectoryEntry ds = new DirectoryEntry("WinNT:");


What are you trying to look for then?? How are you expecting it to
"return the list of domains" ?

Check the ds.Children collection - in my case, I'm definitely seeing a
domain in there (with the name I expect, and the "SchemaEntryName" of
"Domain"):

foreach(DirectoryEntry deChild in ds.Children)
{
string name = deChild.Name;
string schema = deChild.SchemaClassName;
}

Do you see anything at all?

Marc
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSI Mr Newbie Microsoft VB .NET 2 5th Dec 2005 07:48 PM
ADSI+ASP helpme Microsoft Windows 2000 Active Directory 0 18th Jun 2004 10:01 AM
Help with ADSI C# Sumana Microsoft C# .NET 2 7th Apr 2004 02:25 PM
ADSI in vbs =?Utf-8?B?Y3Jpcw==?= Microsoft Windows 2000 Active Directory 0 20th Nov 2003 02:41 PM
ADSI and ASP Steffen Haugk Microsoft Windows 2000 Active Directory 2 31st Jul 2003 02:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:12 AM.