Unable to Unauthorize Windows 2016 DHCP Server

rr-4098 1,621 Reputation points
2024-11-07T20:35:36.76+00:00

I have a Windows 2016 physical server which I am trying to decommission. I ran into an issue trying to unauthorize DHCP. It kept saying "Null" value in the GUI. I tried using PowerShell and it removed the server but the GUI still showed it authorized. Now one thing I did notice is the IP listed for the DHCP server is a 169.x address which is probably for one of the disconnect nic's. Could this be causing an issue? All of the command line suggestions I have tried have not helped.

Any thoughts...

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,530 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 26,620 Reputation points MVP
    2024-11-07T20:59:30.56+00:00

    Ensure that you are performing this task as a member of the Enterprise Admins group.

    If so, and the GUI/PowerShell don't work for you, use AD tools instead:

    Using ADSI Edit

    1. Open ADSI Edit:
    • Open ADSI Edit by running adsiedit.msc from the Run dialog or Command Prompt.
    1. Connect to the Configuration Naming Context:
      • In ADSI Edit, right-click ADSI Edit in the left pane, and select Connect to.
      • In the Connection Settings dialog, select Configuration as the naming context and click OK.
    2. Navigate to the DHCP Authorization Container:
      • Expand CN=Configuration, then CN=Services, and CN=NetServices.
      • The NetServices container holds authorized DHCP server entries.
    3. Locate and Delete the DHCP Server Entry:
      • Under CN=NetServices, you’ll see entries for authorized DHCP servers, typically named CN=<IP Address of the DHCP Server>.
      • Locate the entry corresponding to the DHCP server you wish to unauthorize.
      • Right-click on the entry and select Delete to remove the authorization.
    4. Confirm and Close:
      • Confirm the deletion and close ADSI Edit.

    Using Active Directory Sites and Services

    1. Open Active Directory Sites and Services:
      • Open Active Directory Sites and Services from the Administrative Tools.
    2. Enable Advanced Features:
      • Go to the View menu and select Show Services Node if it’s not already enabled.
    3. Navigate to the DHCP Server Authorization Entry:
      • Expand Services, then NetServices.
      • Under NetServices, you will find entries for authorized DHCP servers.
    4. Locate and Delete the DHCP Server Entry:
      • Right-click the DHCP server entry you want to unauthorize and select Delete.
    5. Confirm and Exit:
      • Confirm the deletion to complete the unauthorization.
    • Restart the DHCP Service: After unauthorizing the DHCP server, restart the DHCP service on the server to ensure it no longer leases IP addresses.

    These steps allow you to unauthorize DHCP servers by directly modifying the AD configuration without relying on PowerShell or the DHCP Management Console.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.