How to dump Windows DHCP scopes

Dump Windows DHCP scopes and reservations with PowerShell, then map them. Lattice does not ingest Microsoft XML or live leases. Keep AD.

Aug 31, 2026 · Query: how to dump Windows DHCP scopes

Dump the scopes. Do not wait for an importer that will never exist.

On the Windows DHCP server, PowerShell as administrator. These cmdlets do not take -All. Reservation, exclusion, lease, and per-scope option cmdlets need a scope: pipe from Get-DhcpServerv4Scope (that object carries ScopeId). Confirm parameters on Microsoft Learn if your Server version differs.

Get-DhcpServerv4Scope | Export-Csv scopes.csv -NoTypeInformation
Get-DhcpServerv4Scope | Get-DhcpServerv4Reservation | Export-Csv reservations.csv -NoTypeInformation
Get-DhcpServerv4Scope | Get-DhcpServerv4ExclusionRange | Export-Csv exclusions.csv -NoTypeInformation
Get-DhcpServerv4OptionValue | Export-Csv options-server.csv -NoTypeInformation
Get-DhcpServerv4Scope | Get-DhcpServerv4OptionValue | Export-Csv options-scope.csv -NoTypeInformation

Export-DhcpServer -File C:\temp\dhcp.xml is a full dump. Lattice will not ingest the XML. Map by hand or script.

What to keep from the CSV

  • Scope: ScopeId, SubnetMask, Name, LeaseDuration
  • Reservation: IPAddress, ClientId (MAC), Name
  • Exclusion: StartRange, EndRange
  • Option 3/6/15/42 at scope vs server level

Microsoft ClientId is typically a hyphenated MAC (F0-DE-F1-7A-00-5E). Normalize to lowercase aa:bb:cc:dd:ee:ff before you POST. If ClientId is not a six-octet hardware address, do not treat it as a Lattice MAC.

What a dump is not

Live leases are not a catalog. Get-DhcpServerv4Lease is optional if you want printers that currently hold an IP to become reservations. It is not a lease import. Failover partners and split scopes do not come with you.

A reservation in MMC is intent. The grant is another store. After cutover, Lattice is one catalog: the reservation you save is the next Offer.

Then map, then POST

Their scope 10.20.20.0/24 is usually a Lattice prefix + subnet + pool. The gateway is an exclude. The printer is a reservation. Relays stay on the L3 switch; you change the helper target. Keep AD.

The playbook — including the JSON you POST — is Migrate. The product page for this move is Replace Windows DHCP.

Lattice is an Ubuntu tarball. Beta signup issues a lifetime perpetual Starter license so you can test three-node HA. Not a sale.

FAQ

How do I dump Windows DHCP scopes?
On the DHCP server, PowerShell as administrator. Get-DhcpServerv4Scope piped to Export-Csv. Pipe that object into Get-DhcpServerv4Reservation and Get-DhcpServerv4ExclusionRange. Those cmdlets do not take -All.
Will Lattice import the XML from Export-DhcpServer?
No. Dump scopes and reservations, map them, POST /api/v1. Live leases do not import. Failover partners do not come with you.
Do I have to move DNS off Active Directory?
No. Keep AD. Option 6 stays on the DNS the laptops already ask.