• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1765
  • Last Modified:

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?

  • 3
1 Solution
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.


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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now