Primary domain controller servername changed by mistake

Tony Mourad 81 Reputation points
2023-09-20T10:36:52.3+00:00

Dear All,

someone by mistake changed the server name of our primary domain controller (physical server). the server name was dc-hq.xxxxxxx.com after restarting the new name is IVN701254.xxxxxxxxxx.com

i tried to rename the domain controller to the original name with no luck. when the screen prompt to me to put the credentials i used a domain admins account.

the error message is : the following error occurred attempting to rename the computer to DC-HQ.xxxxxxxxxxx.com. the specified account does not exist

how i can restore the old server name? please help

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-09-20T13:15:24.2133333+00:00

    You can use PowerShell but this is a very risky move.

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-computer?view=powershell-7.3

    better option may be to stand up a new one for replacement.

    I'd use dcdiag / repadmin tools to verify health correcting all errors found before starting any operations. Then stand up the new 2019 or 2022, 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, when all is good you can decommission / demote old one.

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

    1 person found this answer helpful.

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.