For complete list of PowerShell commands for management of DHCP server, please refer to the link: DhcpServer Module | Microsoft Learn

The Remove-DhcpServerInDC cmdlet deletes the specified DHCP server service from the list of authorized DHCP server services in Active Directory. As an example, I was using an old DHCP server 192.168.1.212 which has been unauthorized and now below command will remove it from AD.

It’s all about balancing product quality and manufacturing cost efficiency in today's market. Often, traditional product coating methods are too expensive, inefficient, or not environmentally friendly. Physical vapor deposition (PVD), or “vacuum coating,” presents an alternative way to improve product characteristics or appearance at a fraction of the cost-per-part of some other methods without environmental impact. As such, there is an ever-growing list of physical vapor deposition (PVD) coating applications. The coatings themselves commonly fall into different categories:

Try to restart DHCP server service on the affected server. Restarting the DHCP server service will not impact any users. Therefore, you can try restarting the DHCP server service first and then run the DHCP Post-Installation Wizard to check if the issue is resolved.

After it has been unauthorized, you can remove it from Active directory by using below PowerShell commands. You can login to a domain controller and execute below commands.

Image

Image

Image

WARNING: The DHCP server with IP address 192.168.1.212 is already de-authorized in Active Directory. Failed to initiate the authorization check on the DHCP server. Error: The RPC server is unavailable. (1722).

If you are migrating from one server to another, there could be issues due to an existing DHCP server in Active Directory. In such cases, unauthorize the old and inactive DHCP server that is no longer needed. Follow these steps to unauthorize a DHCP server:

This error message may show up when migrating from one DHCP server to another or when setting up or rebuilding a new DHCP server. You could try uninstalling the DHCP server role, rebooting the server, and then reinstalling it. However, the same error might occur again.Below is the screenshot of the error message:

Authorizing DHCP Server Failed, The authorization DHCP server failed with Error code 20079. The specified servers are already present in the directory service. If the DHCP server is not authorized by AD DS, it cannot respond to DHCP requests.

Step-by-Step guides for Setup/Troubleshooting/Configuration solutions on Intune, Microsoft 365, Powershell, Windows, Azure, and other Cloud technologies.

You could find more information about the error in the Event Viewer logs. There is a dedicated DHCP Server Folder in the Event viewer which logs all events related to DHCP Server. To check the logs, follow below steps:

Performs TCP/IP configuration for DHCP clients, including dynamic assignments of IP addresses, specification of the WINS and DNS servers, and connection-specific DNS names. If this service is stopped, the DHCP server will not perform TCP/IP configuration for clients. If this service is disabled, any services that explicitly depend on it will fail to start.