Solved

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

Posted on 2014-10-14
6
328 Views
Last Modified: 2014-10-21
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
0
Comment
Question by:Jerry Seinfield
  • 4
  • 2
6 Comments
 
LVL 79

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40381010
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.
0
 

Author Comment

by:Jerry Seinfield
ID: 40381036
Thanks David
0
 

Author Comment

by:Jerry Seinfield
ID: 40382137
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?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Jerry Seinfield
ID: 40382426
Any updates to my last reply?
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 40394312
use the netsh dhcp import and it can be scripted
0
 

Author Comment

by:Jerry Seinfield
ID: 40394358
?
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question