Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS/DHCP MMC to XML Output

Status
Not open for further replies.

peterlyttle

Technical User
Nov 6, 2006
139
GB
Hi, does anyone know of anyway that I can output the Hostname / IP address / MAC address from the list in the DHCP/DNS MMC? The end result is I am trying to get the output in xml format i.e. Also i would like to be able to schedule a task to run this daily.

<address>
<hostname>PC1</hostname>
<ip>10.10.10.10</ip>
<mac>00-16-35-62-B0-70</mac>
</address>

Any ideas anyone?

Cheers,
Peter
 
Both services have command-line tools that include queries. That would probably be the best way to generate your XML.
 
Thanks, ill look into it. Ive come across netsh dhcp server and am looking into parsing it to xml.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top