Recently I was testing renaming the NETBIOS name of an Active Directory domain. While this process is fairly easy, there are a few gotcha's, and before one would like to rename their domain or NETBIOS name, serious testing is required to be sure everything works after rename. In the end, if something goes wrong, the rollback will not be a walk in a park. It will hurt, and it will eat your time. So there was I going thru the usual steps.
And the last step was an unpleasant surprise. Rendom /End error.
C:\Users\Administrator>rendom /end
Failed to delete rename script on the DN: CN=Partitions,CN=Configuration,DC=test,DC=lab on host AD-test.test.lab.
00002077: SvcErr: DSID-030F114D, problem 5003 (WILL_NOT_PERFORM), data 0
: Cannot complete this function. :1003
Before I give you the solution to this error, please keep in mind the above steps, while easy to follow, require testing. I would never rename NetBIOS or domain name without testing on a test environment that is a copy of the original domain with a handful of servers/computers to replicate identical conditions. You shouldn't either.
To correct this problem, we need to move the Domain Naming Master function to another DC and then return the function to the original DC. Once completed, the step rendom /end should be able to complete. In my case, I had only one DC (test lab), but it's enough to try and move Domain Naming Master role to the very same DC.
Move-ADDirectoryServerOperationMasterRole -OperationMasterRole DomainNamingMaster -Identity MyDC.domain.local
Moving the role of DomainNamingMaster fixed the issue and allowed me to finish my rename process.