473,480 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2088
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
4532
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
5784
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
10194
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
14021
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
1897
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
293
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
1191
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
1485
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
2064
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
7046
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
6908
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...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5342
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
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.