Script to Export DHCP settings from multiple Win 2003 DHCP servers with many scopes

Hi All

We have about 10 legacy Windows 2003 DHCP servers with a number of scopes, we keep finding issues where the scopes options, especially DNS servers are inconsistent.

I would like a PowerShell script that will find all DHCP servers in our domain and then get the scope options and export to a CSV.

Is this possible?

Thanks

Our environment:
source DHCP OS server version: Windows 2003/2003 R2 [here are all scopes that required to be migrated]

Destination DHCP server version: Windows 2008 /2012 [new servers where all scripts will be migrated]

Only Windows 7 SP1 clients

Domain controllers version: Windows 2008 R2

No windows 8 machines available

Forest/domain functional level: Windows 2008

Please, I need your help to write the script, rather than a link to review info, such as below

http://blogs.technet.com/b/teamdhcp/archive/2012/12/03/dhcp-powershell-export-import-cmdlets-in-windows-server-2012.aspx



Server 2003 doesn't support the powershell export command. you have to do an explicit export then an import using netsh
http://support.microsoft.com/kb/962355

so you are going to have to do it 10x in order to get the data into a manageable and easily manipulable form.



Server 2003 doesn't support the powershell export command. you have to do an explicit export then an import using netsh
http://support.microsoft.com/kb/962355

so you are going to have to do it 10x in order to get the data into a manageable and easily manipulable form.



Thanks David



What about if I need to import that data onto a WIndows 2012 server? Is the link above still applicable?

Can I script the process to import all these 10 DBs into a single Windows 2012 DHCP server?



Any updates to my last reply?



use the netsh dhcp import and it can be scripted

Share this

Related Posts

There was an error in this gadget