Reading Time: < 1 minute

Last week, I needed to quickly find out all the Authorized DHCP Servers in the AD Forest. Fortunately, the following Powershell cmdlet saved me a lot of time and I wanted to share it with you.

First of all, you need to make sure that the following module is loaded in order to use the cmdlet that meets our needs.

Query AD for Authorized DHCP Servers, make sure you use the forest tree root domain.

In case you want to export the results into a text file use the following syntax.

Thanks for reading!