![]() Use the link above to download the function. PS C:\> Get-TMDhcpDNS -ComputerName '' | Format-Table -AutoSize Thanks, and here’s an example of the function in action: a) Get-DhcpServerv4Scope ComputerName variable (write the output to a file) This will list the scopes of each DHCP server. 2) I then need it to loop through each DHCP server in this list (1a) and run. If you think this might be helpful for you or someone else, then please download it, test it, and rate it. 1) It will first run this command: a) Get-DhcpServerInDC (write the output to a file) This will list all DHCP servers in the domain. Get-TMDhcpDNS function will collect the Scope Name, Scope ID, DNS Servers, and whether the DNS Servers assigned, are done so in the Scope Options or Server Options. Since that forum post, I wrapped up a few commands to create a full-service advanced function. ![]() At times there won’t be any DNS Servers listed in the Scope Options, and it’ll use the Server Options instead. I originally thought the person wanted to get the DNS Servers listed in the Server Options (what the scopes use by default), until he (or she) better clued me in to wanting the DNS Servers listed in the Scope Options, when there was one. There was a Microsoft TechNet forum post last week regarding trying to obtain the DNS servers being used by different DHCP Scopes (Here’s the link: ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |