Get all servers that run DHCP in the domain

< 1 minute to read

The Get-DhcpServerInDC cmdlet retrieves the list of authorized computers that run the Dynamic Host Configuration Protocol (DHCP) server service from Active Directory. Only a computer that runs a DHCP server service that is authorized in Active Directory can lease IP addresses on the network.

/**
PS C:\Users\cloudadmin> Get-DhcpServerInDC

IPAddress            DnsName
---------            -------
192.168.83.20         ctadcp001.cloudtech.local
192.168.83.21         ctadcp002.cloudtech.local
192.168.151.12        ctavsp001.cloudtech.local
192.168.83.12         ctavsp001.cloudtech.local
192.168.151.22        ctavsp002.cloudtech.local
192.168.84.41         ctavsp002.cloudtech.local
192.168.150.46        ctavsp003.cloudtech.local
192.168.150.47        ctavsp004.cloudtech.local

 */

 

Leave a Reply

Your email address will not be published.Required fields are marked *