?
Solved

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

Posted on 2014-10-14
6
Medium Priority
?
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 82

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

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

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Suggested Courses

770 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