473,225 Members | 1,282 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,225 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 2072
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.