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