Solved

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

Posted on 2014-10-14
6
318 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 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
Comment Utility
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
Comment Utility
Thanks David
0
 

Author Comment

by:Jerry Seinfield
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:Jerry Seinfield
Comment Utility
Any updates to my last reply?
0
 
LVL 78

Expert Comment

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

Author Comment

by:Jerry Seinfield
Comment Utility
?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
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.…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now