Reading DHCP database from script

  • Thread starter Thread starter Patrice Valiquette
  • Start date Start date
P

Patrice Valiquette

Hi,
I have a Windows 2003 dhcp server with 60 scopes.
I would like to know how to retreive (with WMI script or else) dhcp clients
informations (like host name, mac adress, ip adress) from dhcp server
database.

Thank you for any help

Patrice

(e-mail address removed)
 
Hello Patrice,

You can dump the configuration information and also the address leases
information
to a text file by using netsh.

http://www.microsoft.com/technet/tr...wsserver2003/proddocs/standard/netsh_dhcp.asp

show clients is the command you would need.

Good Luck!!!

--
Regards,
Mohanchand Koduri [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
OR
If you wish to include a script sample in your post please add "Use of
included
script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
 
Thank you very much Mohanchand, This is exactly what I was loking for !

Patrice

Mohanchand Koduri said:
Hello Patrice,

You can dump the configuration information and also the address leases
information
to a text file by using netsh.

http://www.microsoft.com/technet/tr...wsserver2003/proddocs/standard/netsh_dhcp.asp

show clients is the command you would need.

Good Luck!!!

--
Regards,
Mohanchand Koduri [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
OR
If you wish to include a script sample in your post please add "Use of
included
script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

Patrice Valiquette said:
Hi,
I have a Windows 2003 dhcp server with 60 scopes.
I would like to know how to retreive (with WMI script or else) dhcp clients
informations (like host name, mac adress, ip adress) from dhcp server
database.

Thank you for any help

Patrice

(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top