Link to home
Start Free TrialLog in
Avatar of ncomper
ncomper

asked on

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?

Thanks
Avatar of ncomper
ncomper

ASKER

Hi Thanks, should have pointed out my workstation is Windows 7, looks like these are only available if you are running Windows 8 / 2012
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
GaryC123: Thanks for comment.
The link contains exactly similar answer to the question raised. It is self explanatory so just posted without any comments.
Avatar of ncomper

ASKER

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.
Avatar of ncomper

ASKER

Thanks, I just installed a window8 8 VM in the domain