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

Hi All

We have about 15 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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ncomperAuthor Commented:
Hi Thanks, should have pointed out my workstation is Windows 7, looks like these are only available if you are running Windows 8 / 2012
Will SzymkowskiSenior Solution ArchitectCommented:
Take a look at this article. It states Server 2012 in the heading but reading down it is compatible with Server 2008/R2 and 2012.

Using the Export-dhcpserver and Import-dhcpserver cmdlets.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
GaryC123: Thanks for comment.
The link contains exactly similar answer to the question raised. It is self explanatory so just posted without any comments.
ncomperAuthor Commented:
Hi Will

Thanks for the link, the issue is the cmdlets are only available with the powershell that comes with Win 8 / server 2012.

If you run the powershell command from one of those you can indeed query Windows 2008 R2 DHCP servers.

In my case all PC's are windows 7 and all servers are 2003 / 2008r2 so I don't have access to the cmdlets.
ncomperAuthor Commented:
Thanks, I just installed a window8 8 VM in the domain
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.