JSI Tip 1817. How do I export a DHCP database to a text file?

Jerold Schulman

November 16, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

To export the contents of a DHCP database to a delineated text file, use Dhcpcmd.exe.

Logon to the DHCP server with Administrative priviledges and type the following at a CMD prompt:

dhcpcmd enumclients - >

where:

is the IP Address of the DHCP server.

is the network address of the DHCP scope.

is v for detailed lease information or h for lease / hardware information.

is the output file, which can be imported into Excel, Access, Word, etc....

Example:

dhcpcmd 192.168.1.10 enumclients 11.101.0.0 -h > dhcpout.txt

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like