Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using DHCP powershell modules - getting unexpected output for DNSConfiguration

$
0
0

Hi,

I am using the Powershell DHCP module with the hope of exporting a list all DHCP scopes on all DHCP servers and specifically listing the current DNS servers that are being used for each scope.

I have been using the following cmdlet:  get-dhcpscope -server [SERVERNAME].

This does indeed yield a list of all scopes on the server, but where I expected to see the addresses of the DNS servers configured for each scope, it reports 'Inherited from Parent'.  

Now, if I use the cmdlet:  get-dhcpscope -server [SAMESERVER] -scope [x.x.x.x] | get-dhcpoption -optionid 6, it accurately reports the addresses of the DNS servers, which in some cases are different than those defined at the server level.

Has anyone come across this scenario?

Thank you in advance!

JC


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>