Just a quick reminder on how to quickly move a Microsoft DHCP server.
Export with netsh dhcp server export backup.txt
Import on new server withnetsh dhcp server import
dont forgett to ”Authorize” correct server.
Powershell way 🙂
DHCP Migration/Move to new Microsoft Server
Run this on the destination server..
#
$SourceServer = ”vdc01.byggkon.local”
$Sourceip =”192.168.52.10″
$DestServer =”vdc02″
$Destip =”192.168.52.11″
$WorkDir = ”c:\DHCPMigration”
if (-not (test-path $workdir)) {md $workdir}
Export config from old server
Export-DhcpServer -ComputerName $SourceServer -File ”$Workdir\SourceDHCPScopeData.xml” -Force
Stop OLD DHCP Server – decommision
Stop-Service -InputObject $(Get-service -ComputerName $SourceServer -Name DHCPServer) #Stop service on Source
set-service -InputObject $(Get-service -ComputerName $SourceServer -Name DHCPServer) -StartupType disabled #Disable Service on Source
Remove-DhcpServerInDC -DnsName $SourceServer -IPAddress $Sourceip # Deauthorize in AD
Importera den nya
Import-DhcpServer -ComputerName $DestServer -File ”$Workdir\SourceDHCPScopeData.xml” -BackupPath $workdir
Add-DhcpServerInDC -DnsName $DestServer # Authorize scope
Get-DhcpServerInDC





