473,405 Members | 2,373 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,405 software developers and data experts.

WinNT provider, c#, retrieving NT computers

My application needs to enumerate computers on both AD domains and also on
existing NT domains. The earch of Ad domains was a snap, but the WinNT
provider errors out telling me you cannot search on this provider. I need to
return a list of computers (and distinguish servers fron workstations) in a
particular NT domain. Anybody out there run into this?
Jul 21 '05 #1
4 2083
You probably don't have access to the NT domain you are trying to query.
Check if trust is setup.

TK

"John P" wrote:
My application needs to enumerate computers on both AD domains and also on
existing NT domains. The earch of Ad domains was a snap, but the WinNT
provider errors out telling me you cannot search on this provider. I need to
return a list of computers (and distinguish servers fron workstations) in a
particular NT domain. Anybody out there run into this?

Jul 21 '05 #2
You probably don't have access to the NT domain you are trying to query.
Check if trust is setup.

TK

"John P" wrote:
My application needs to enumerate computers on both AD domains and also on
existing NT domains. The earch of Ad domains was a snap, but the WinNT
provider errors out telling me you cannot search on this provider. I need to
return a list of computers (and distinguish servers fron workstations) in a
particular NT domain. Anybody out there run into this?

Jul 21 '05 #3
Hi,

this is not possibly with the implementation of ADSI in NT4. The interface
does not implement searching. The only alternate I see is to enum all and
"build a filter in code".

Best regards,
Manfred Braun

(Private)
Mannheim
Germany

mailto:_m*************@manfbraun.de
(Remove the anti-spam-underscore to mail me!)

"John P" <Jo***@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
My application needs to enumerate computers on both AD domains and also on
existing NT domains. The earch of Ad domains was a snap, but the WinNT
provider errors out telling me you cannot search on this provider. I need to return a list of computers (and distinguish servers fron workstations) in a particular NT domain. Anybody out there run into this?

Jul 21 '05 #4
Hi,

this is not possibly with the implementation of ADSI in NT4. The interface
does not implement searching. The only alternate I see is to enum all and
"build a filter in code".

Best regards,
Manfred Braun

(Private)
Mannheim
Germany

mailto:_m*************@manfbraun.de
(Remove the anti-spam-underscore to mail me!)

"John P" <Jo***@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
My application needs to enumerate computers on both AD domains and also on
existing NT domains. The earch of Ad domains was a snap, but the WinNT
provider errors out telling me you cannot search on this provider. I need to return a list of computers (and distinguish servers fron workstations) in a particular NT domain. Anybody out there run into this?

Jul 21 '05 #5

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

Similar topics

2
by: Dirk Hagemann | last post by:
Hi! I'm using this code to list all computers of our WinNT-Domains: import win32com.client from pprint import pprint as p domain='domainX' auswahl='computer' def enumerate(domain,auswahl):...
2
by: t.schwenk | last post by:
hi ng! for our intranet i try to connect to the WinNT:// namespace from an asp (or from global.asa) to retrieve the usergroups which the current user is in (in order to regulate...
5
by: Blake | last post by:
ASP code looks like this (win2k, IIS 5, Win2k AD): <% Set oUser = GetObject("WinNT://ourdomain/testuser") response.write("user = " & oUser.Name) %> output is this: error '80070035'
4
by: Thomaz | last post by:
In VB, I can write the following code to get the list of users and groups in the domain ASIA. How do I do the same in C# Set objContainer = GetObject("WinNT://ASIA") objContainer.Filter =...
1
by: Matthias Mohr via .NET 247 | last post by:
Hello, I'm trying to get Users that belong to a group with the WinNT Provider in an ASP.NET environment. I found several examples to do this under ASP using the GetObject-Method...
2
by: John P | last post by:
My application needs to enumerate computers on both AD domains and also on existing NT domains. The earch of Ad domains was a snap, but the WinNT provider errors out telling me you cannot search on...
0
by: Trevor Lawrence | last post by:
I am trying to clean up the remnants of an old NT4 domain and am trying to create a DirectoryEntry object referring to an NT4 group via the WinNT provider. That part works fine, but I cannot find...
2
by: Don Rich | last post by:
Please share with me any ideas you may have for troubleshooting and resolving the subject problem. I can give more details as necessary. (Please advise if I should post this problem to a more...
1
by: mrpetegroups | last post by:
Hi - Problem: The file below has become zero length \winnt\assembly\GAC_MSIL\system.deployment\2.0.0.0_b03f5f7f11d50a3a \system.deployment.dll Details follow ... I've been programming...
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
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
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
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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.