467,188 Members | 1,386 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,188 developers. It's quick & easy.

List of DHCP servers ?

Hello.

Is it possible to obtain programmatically, with .net 2.0 + C# + Active
Directory or P/Invoke, a list of the authorized current DHCP servers in a
forest/domain ?

And, if the above question can be solved, is it also possible to manage the
DHCP servers (list, add, remove scopes, ...) ?

Thank you.
jean-marie
Jan 21 '06 #1
  • viewed: 3037
Share:
3 Replies
Hi Jean,

Thanks for posting!

For the current issue, as far as I know, we can use the DirectoryServices
namespace which provided by the .Net framework and the AD schema to do this
job.

All DHCP information is included in the DHCP-Class schema (ADSI). We can
use the DirectorySearcher class to search everything in the ADSI. The
article from MSDN document demonstrates how to searching in the AD as below:
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtsksearchingactivedirectoryhierarchy.asp

The DHCP-Class schema:
http://msdn.microsoft.com/library/de...us/adschema/ad
schema/c_dhcpclass.asp

In addition, the schema includes whole information about the DHCP server.
We can modify any properties by using it.

I hope the above information will be helpful!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Jan 23 '06 #2
Thank you very much.
I will study the DHCP-Class and begin by read the servers and scopes.

Best regards.
jean-marie

""Yuan Ren[MSFT]"" <v-****@microsoft.com> wrote in message
news:zZ**************@TK2MSFTNGXA02.phx.gbl...
Hi Jean,

Thanks for posting!

For the current issue, as far as I know, we can use the DirectoryServices
namespace which provided by the .Net framework and the AD schema to do
this
job.

All DHCP information is included in the DHCP-Class schema (ADSI). We can
use the DirectorySearcher class to search everything in the ADSI. The
article from MSDN document demonstrates how to searching in the AD as
below:
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtsksearchingactivedirectoryhierarchy.asp

The DHCP-Class schema:
http://msdn.microsoft.com/library/de...us/adschema/ad
schema/c_dhcpclass.asp

In addition, the schema includes whole information about the DHCP server.
We can modify any properties by using it.

I hope the above information will be helpful!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Jan 23 '06 #3
Hi Jean-marie,

You are welcome:)

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Jan 24 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Richard D. Ford | last post: by
5 posts views Thread by Steve | last post: by
5 posts views Thread by Richard | last post: by
1 post views Thread by Screenbert | last post: by
reply views Thread by screenbert@gmail.com | last post: by
7 posts views Thread by =?Utf-8?B?VGhlTWFkSGF0dGVy?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.