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

Home Posts Topics Members FAQ

Domain and machines that belong to it.

Hi,

I've never worked on networks, domains or WMI problems. I'll try to word out
what I need. Basically, I have HostName on my form(IP address -
abc123.DomainName.com). HostName is passed from different object. I need to
retrieve the list of all computer names that belong to that domain.
Everything stored in Active Directory. Should I use Environment class or
..Net API(no idea what is that, though). Please, advise.
Thanks,
--Alex Ayzin
Nov 20 '05 #1
2 917
Hi,

Use the classes in system.directoryservices. Here is a link to an
example.
http://www.vbdotnetheaven.com/Code/May2003/1004.asp

Ken
----------------
"Alex Ayzin" <Al********@verizon.net> wrote in message
news:eR**************@TK2MSFTNGP09.phx.gbl...
Hi,

I've never worked on networks, domains or WMI problems. I'll try to word out what I need. Basically, I have HostName on my form(IP address -
abc123.DomainName.com). HostName is passed from different object. I need to retrieve the list of all computer names that belong to that domain.
Everything stored in Active Directory. Should I use Environment class or
.Net API(no idea what is that, though). Please, advise.
Thanks,
--Alex Ayzin

Nov 20 '05 #2
Thanks a lot, Ken. The article seems to be precisely what I need. Thanks a
lot.
Somebody told me, that I'd have to use old Win 32 API call, Win32_Group or
something. I'm glad that I don't have to use that stuff anymore.
--Alex Ayzin

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

Use the classes in system.directoryservices. Here is a link to an
example.
http://www.vbdotnetheaven.com/Code/May2003/1004.asp

Ken
----------------
"Alex Ayzin" <Al********@verizon.net> wrote in message
news:eR**************@TK2MSFTNGP09.phx.gbl...
Hi,

I've never worked on networks, domains or WMI problems. I'll try to word

out
what I need. Basically, I have HostName on my form(IP address -
abc123.DomainName.com). HostName is passed from different object. I need

to
retrieve the list of all computer names that belong to that domain.
Everything stored in Active Directory. Should I use Environment class or
.Net API(no idea what is that, though). Please, advise.
Thanks,
--Alex Ayzin


Nov 20 '05 #3

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

Similar topics

1
by: Dave C. | last post by:
Hi there, BOL notes that in order for replication agents to run properly, the SQLServerAgent must run as a domain account which has privledges to log into the other machines involved in...
4
by: Svend Tofte | last post by:
Hey, I'm doing some webapplications, and in one of them, I want to open a page, from another domain. This is running internally, with full control over the enviroment. However, even adding the...
4
by: Jonny | last post by:
I'm sure this is easy and i'll kick myself for it. How would i go about listing all the machines on a domain? I want to display them in a list box. Thanks /Jonny
1
by: Brian 5 | last post by:
I am trying to find code where I can retrieve either the domain or workgroup to which a Windows 98 machine belongs. The System.Environment.UserDomainName does not work on Windows 98. I am...
5
by: Eranga | last post by:
I want to get the list of computers with users logged on in my domain using C# as the language . Can some one of you plese tell me how exactly I can perform this Thanks in advance *** Sent...
1
by: Andy | last post by:
hi i'm making small app for my company in visual basic express... we would like to setup usergroup on windows domain... and only users that are in that group would be able to access...
0
by: lukin26 | last post by:
Hi everyone I'm posting this in the hope that someone may have seen similar goings on. We have several web services all protected using x.509 certificates and WSE 3.0. For the majority of...
4
by: JB | last post by:
I am trying to get a list of all the active computers running on my domain. I'm writing some remote management style software with WMI, which works fine when i know the computer name, but i just...
5
by: Maniyarasan | last post by:
Hi All, I am unable to access another machine's IIS URL from my machines in a same domain. Say like..Two machines are in a domain called machine1, machine2. http://machine1/...
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,...
1
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
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.