Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, February 23, 2011 9:32 PM
What I want to do is export my entire DHCP setup (address pool, leases, reservations, scope options, etc) into a file that is easily readable in case I ever had to set this up from scratch.
I know I can do a backup on the server name, but I'd also like to have it documented in some form where I could open this file and rebuild it all manually from scratch. Anyone know how to do this?
All replies (3)
Thursday, February 24, 2011 1:10 AM ✅Answered
from the command prompt type:
netsh dhcp server dump >c:\DHCPinfo.txt
or to show client leases for the 192.168.50.0 scope:
netsh dhcp server scope 192.168.50.0 show clients >c:\192_168_50_0_Clients.txt
If you want to explore a bit more do this:
- cmd
- netsh
- dhcp
- server
- list
This will give you the command line options for DHCP. ref: http://technet.microsoft.com/en-us/library/cc776745(WS.10).aspx
Mike Crowley
Check out My Blog!
Thursday, February 24, 2011 4:30 AM
Hi,
In additional , we can also easily rebuild DHCP server with the exported file by performing “netsh dhcp server import <full path of exported file> < all | ScopeList**>**”
Netsh commands for DHCP
http://technet.microsoft.com/en-us/library/cc787375(WS.10).aspx
Thanks.
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact [email protected]
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Friday, February 25, 2011 3:17 PM
That did it, thanks Mike. And thanks to you too Tiger, I didnt know restoring it could be that easy via command line either.