To export the contents of DHCP database to a text file, you can use the Dhcpcmd.exe utility that is included with Microsoft Windows NT Server 4.0.
To use this utility, you should use an account with administrative privileges on the DHCP server. Now type the below command at the command prompt:
Code:
dhcpcmd <IPAddress> enumclients <ScopeNetAddress> -<option> > <Path\textfile.txt>
where
IPAddress is the IP address of the DHCP server.
ScopeNetAddress is the network address of the DHCP scope.
option (-v or -h)
-v: Lists detailed lease information
-h: Lists lease information with hardware information
textfile.txt is the name of the destination file.
Bookmarks