Wrong rename hostname domain controller

Leonardo Santorso 1 Reputation point
2021-12-21T12:51:32.723+00:00

Hello i'm Leonardo, i have big problem Whit 1 domain controller, i wrong rename hostname It, and i lose access to all user, the local administration is block, i was try recovery or change hostname, i was success access to cmd from blocked login ( untilman.exe solution for recovery credential ) . any idea?

Thanks for support

Windows for business Windows Client for IT Pros Directory services Active Directory
Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-12-21T13:51:17.687+00:00

    Simplest solution may be to remove from network, seize roles (if necessary)
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/transfer-or-seize-fsmo-roles-in-ad-ds

    do cleanup to remove remnants
    https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup
    https://techcommunity.microsoft.com/t5/itops-talk-blog/step-by-step-manually-removing-a-domain-controller-server/ba-p/280564

    and stand up a new one for replacement.

    The two prerequisites to introducing the first 2019 or 2022 domain controller are that domain functional level needs to be 2008 or higher and older sysvol FRS replication needs to have been migrated to DFSR
    https://techcommunity.microsoft.com/t5/Storage-at-Microsoft/Streamlined-Migration-of-FRS-to-DFSR-SYSVOL/ba-p/425405

    I'd use dcdiag / repadmin tools to verify health correcting all errors found before starting any operations. Then stand up the new one, patch it fully, license it, join existing domain, add active directory domain services, promote it also making it a GC (recommended), transfer FSMO roles over (optional), transfer pdc emulator role (optional), use dcdiag / repadmin tools to again verify health.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Limitless Technology 39,916 Reputation points
    2021-12-22T12:39:24.86+00:00

    Hi @Leonardo Santorso

    The issue you are having is related to the solutions on this post:

    https://social.technet.microsoft.com/Forums/en-US/09f6599e-8ec3-4f4d-ba4e-ecaa55578080/renamed-dc-ad-broken?forum=winserverDS

    Basically using the NETDOM comand to rename Domain Controllers, instead of machine name changes or so, because NETDOM will change the SPN and DNS registration:

    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc782761(v=ws.10)?redirectedfrom=MSDN

    Hope this helps with your query,

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

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.