How to rename a Windows Server 2008 domain

Previously you have been able to use RENDOM utility provided by Microsoft to rename your Window 2000 and Windows Server 2003 domains. However in Windows Server 2008 domain you don’t have to separately install Rendom utility. It gets installed as part of “Active Directory Domain Services” role when you promote a server to the DC role. And It can be found here : %windir%\system32\rendom.exe.

I used it to rename a Windows Server 2008 domain in my test lab environment. The process was pretty straightforward but it may require more tasks if you have multiple DCs in a multi domain environment.

The Forest and Domain Functional Level should be Windows Server 2008 to proceed with the following task.

From the command prompt, I started out by running rendom /list which outputs an XML file (Domainlist.xml) to the directory where rendom resides. You edit that file to change your domain configuration to the new domain name. i.e ForestDNSZones, DomainDNSZones, Netbios name. See referenced link for details.

After you have modified the file you can run rendom /showforest which shows you the future configuration, verify and make changes if necessary.

Upload the changes you have made in the XML file: Run rendom /upload

Verify readiness of Domain Controller(s): Run rendom /prepare

Execute domain rename instructions: Run rendom /execute

After thats finishes up successfully, you should also run GPFIXUP tool to fix up GPO references to your old domain name. See Step 12 of this document.

Here is an example :

C:\Users\Administrator>gpfixup /olddns:08r2.lab /newdns:mcts.lab
Group Policy fix up utility Version 1.1 (Microsoft)

Start fixing group policy (GroupPolicyContainer) objects:
……..

Start fixing site group policy links:
.

Start fixing non-site group policy links:
….
gpfixup tool executed with success.

C:\Users\Administrator>gpfixup /oldnb:08r2 /newnb:mcts
Group Policy fix up utility Version 1.1 (Microsoft)

Start fixing group policy (GroupPolicyContainer) objects:
..
gpfixup tool executed with success.

Lastly, run rendom /clean

The identity (domain GUID) of the renamed domain does not change during a domain rename operation. Thus a computer’s domain membership does not change as a result of the holding domain being renamed.

However, every member computer joined to the renamed domain needs to be rebooted twice. Please refer to “How Domain Rename works” technical reference for more info.

How Domain Rename Works : Microsoft Technet

Other References:

http://dsg.port.ac.uk/~hx/rename_domain/index.php

http://www.msexchange.org/tutorials/Domain-Rename.html (for domains with Exchange)

53 Comments to "How to rename a Windows Server 2008 domain"

  1. JC wrote:

    Thanks for the long-to-short on this.
    Worked great!

  2. J Wynn wrote:

    Thank you. You save my day.

  3. Robot-Scott wrote:

    just an fyi, the technet website says that only a 2003 forest and domain level is needed to perform the renaming, not 2008… http://technet.microsoft.com/en-us/library/cc816631(WS.10).aspx

  4. Rick wrote:

    Hi Scott,

    08 mode is not a requirement but in my example shown, I actually renamed a Windows Server 2008 domain which for the FFL/DFL had to be 08 native. If it was not, I would then just be talking about renaming a Windows Server 2003 domain and having an one-off 08 DC in that domain.

  5. Sheriff wrote:

    Hi Sheikh, Thanks a lot you saved me a lot of trouble. It worked perfectly. My server warned me and rebooted before I could enter the “rendom /clean” command but I run it after restarting and logging in. Sallam.

  6. anonymous wrote:

    this is what im looking for, thank you
    its a shame that there’s not enough resource on the Web regarding on how to use rendom.exe

  7. hafiz wrote:

    Thanks. Its a wonderful contribution.

  8. Vlad (Small Business Blog) wrote:

    Thank you, you just saved me two hours of aggravation and probably same thing tomorrow :)

    I would just say that instead of examples on gpfixup utility (or, rather, in addition to them) I would’ve added the explanation from the document you have linked to. Namely the following passage:

    gpfixup /olddns:OldDomainDnsName
    /newdns:NewDomainDNSName
    /oldnb:OldDomainNetBIOSName
    /newnb:NewDomainNetBIOSName
    /dc:DcDnsName 2>&1 >gpfixup.log
    -Where-
    OldDomainDnsName is the old DNS name of the renamed domain.
    NewDomainDnsName is the new DNS name of the renamed domain.
    OldDomainNetBIOSName is the old NetBIOS name of the renamed domain.
    NewDomainNetBIOSName is the new NetBIOS name of the renamed domain.
    DcDnsName is the DNS host name of a domain controller in the renamed domain, preferably the PDC emulator, that successfully completed the rename operation with a final Done state in the dclist.xml state file in “STEP 8: Execute Domain Rename Instructions” earlier in this document.

  9. Qazi Ehteshamuddin wrote:

    Thank you ,
    Very simple and helpful , worked well for me.

  10. Venkatesh wrote:

    Thank you for your above step is worked for me..

  11. VIJim wrote:

    The Microsoft documentation on rendom says to run rendom.exe on a control computer, a computer conected to the domain. Do not use a domain controller to act as the control station for the domain rename operation.

    What’s your exerience?

  12. Mohammed Abid wrote:

    simple and great,keep going. when i change from old domain name to new still im able to find the old domain in account properties like user@olddomain.com and even new user@newdomain.local.

    can you put your inputs regardint this

  13. Greg wrote:

    GREAT!!! VERY HELPFUL!!!!

  14. OtherKevin wrote:

    One thing that you might want to add…you need to make sure that the DNS zone for the new DNS domain name exists BEFORE you begin mucking around with RENDOM. If it doesn’t then RENDOM will not be able to create the required DomainDnsZones and ForesDnsZones entries in DNS.

  15. Marios wrote:

    Guys what is the difference between .local and .com ?

  16. Rick wrote:

    See this discussion. http://www.experts-exchange.com/Software/Server_Software/Q_23280872.html

    Basically, when using a public TLD you just have to take into consideration of the public DNS namespace usage and the possible need to use the split brain DNS to avoid the name resolution confusion.

  17. jason wrote:

    Great post! Thank you. I had read the unabridged material on this subject and can appreciate this work very much.

  18. Arun Kumar Arjunan wrote:

    Thanks. Worked perfectly..

  19. Rename Domain in Windows Server 2008 « Nishant Rana's Weblog wrote:

    [...] http://www.shariqsheikh.com/blog/index.php/200804/how-to-rename-a-windows-server-2008-domain/ [...]

  20. Roshan wrote:

    Any ideas about rename xyz => xyz.local
    2 dc (2003 and 2008)

  21. Rick wrote:

    Hi Roshan, I have not tried renaming a SLD. You may test it in a sandbox environment.

  22. mirza wrote:

    thx man. great article

  23. Alex wrote:

    Great stuff!

  24. Shah Murad wrote:

    Hi Shariq,
    Great article! Easy to follow and so far, things are looking great with the newly named domain.
    Thanks for the tip.
    Regards
    Shah

  25. Ahmed wrote:

    Dear Friends,
    thanks for reading my post.

    I have setup a network with Windows 2008 R2 and mistakenly given my public domain name which is mydomain.com , everything is running fine, clients can login and group policy is being applied to all. But now if I open an internet page and type http://www.mydomain.com it gives me a blank page.

    I have noticed this after months. Is there anything I can do to rectify this?

    I have tried to run this command to rename the domain name windir%\system32\rendom.exe a black screen flashes and disappears.

    Could you please advise me how to rectify my mistake so I can browse to my website online or if I must rename the fqdn then please advise how to run random.exe tool somehow because if I runt it now it just flashes a black screen.

    Thank you in advance

    Ahmed

  26. Rick wrote:

    Hi Ahmed, A domain rename is not necessarily a solution in your case. Take a look at “split brain DNS” setup http://msdn.microsoft.com/en-us/library/ms954396.aspx.

  27. Venkatraman S wrote:

    Thank you for your above step is worked………….

  28. Emilio Mansur wrote:

    Hi there!

    Thanks for the simple explanation.
    I have a question… do I have to rebot all my clients if I change only the NetBIOS name? ;)

  29. Rick wrote:

    Hi Emilio. I believe you do. Thanks,

  30. ranjeet wrote:

    hi ,
    i want to change my domain name .com to .edu . can you tell me how to change .

    THANKS
    Ranjeet

  31. Geryatric wrote:

    I need to do this on a SBS2008 server (running Exchange 2007)
    The rendom.exe is included with the SBS install.

    Has anyone sucessfully renamed a SBS2008 domain or a domain with Exchange installed?

  32. Geryatric wrote:

    To claify my post above – I only need to change the NETBIOS domain name. The FQDN name is correct.
    FQDN: company.com
    NETBIOS domain name: copany

    Looks pretty straight forward to change with RENDOM but I can’t find any posts regarding Exchange Server / SBS

  33. Mark H wrote:

    Very useful article, however in my organisation our forest is Windows 2008 functional level but we have an Exchange 2003 server in our organisation I haven’t found a definitive guide that shows the process for the Exchange part. When I have run the XDR-Fixup it gives Operation Failed errors.

    Also if I am renaming a Windows 2008 domain from example.com to example.local do I need a control station?

  34. Q wrote:

    This DID NOT WORK and I cannot log into my domain controller now.

  35. Andrea wrote:

    It didn’t work for me…

    When I try the RENDOM /UPLOAD it tells me:
    Impossible to upload ALIAS in DNS root for distinct name: CN=e312e2aa-508e-41
    00002098: SecErr: DSID-03150E8A, problem with 4003 (INSUFF_ACCESS_RIGHTS)

    Insufficent access right??
    I’m using the only Administrator configured on the machine….

    Any idea?
    Thanks,
    Andrea

  36. narayan wrote:

    thank you sir

  37. narayan dasar wrote:

    Thanks for the
    explanation.

  38. Yasin EVRENKAYA & IT Specialist ! » Windows Server (2003 -2008) Change Domain Name wrote:

    [...] http://www.shariqsheikh.com/blog/index.php/200804/how-to-rename-a-windows-server-2008-domain/ [...]

  39. Papi wrote:

    I can’t logon after doing the instructions except that i failed to do the gpfixup. lol.

  40. Papi wrote:

    I got in lol. I had to change my domain in the user logon process. will do more fixin… :)

  41. BriData 数据仓库/商务智能技术 Blog » 如何修改 Windows Server 2008 R2 Domain Name wrote:

    [...] http://www.shariqsheikh.com/blog/index.php/200804/how-to-rename-a-windows-server-2008-domain/ 分类: 其他 评论 (0) Trackbacks (0) 发表评论 Trackback [...]

  42. Mark Bazemore wrote:

    This is the most straight forward method of renaming a Domain Server I have found. It is a pleasure to see someone put a logical sequence in order and concise. Thanks!

  43. Brian wrote:

    Can you use a Windows 7 machine as the “Control Station” ?
    If not, what happens if you run RenDom on the PDC?

    I am trying to rename a domain on a PDC for a new domain that is not yet in production – but there has been extensive configuration and license activations, so I don’t want to do a complete reinstall…

  44. Sat wrote:

    Hi, Fantastic instructions but I’ve ran into problems.
    I’m trying to rename our school domain, I have one server and everything went well until I ran:
    repadmin /syncall /d /e /P /q DcDnsName NewDomainDN

    I keep getting the following error:

    DsBindWithCred to h-server.hollybrook.local failed with status 1722 (0x6ba):
    The RPC server is unavailable.

    I seem to be stuck at this point and cannot proceed any further.

    Thanks in advance
    Sat

  45. Ethiopia wrote:

    Thanx a lot man. It works.

  46. PJ wrote:

    Thanks. It worked well as per instructions. GPFixup command went very well with dns & nb
    but my full computer name of the domain is not changed. still showing old name.
    How do i change my full computer name in the domain.
    Pls guide me
    God bless – PJ:)

  47. Monrojo wrote:

    Can this bea done on the server or doest it have to be done from a workstation

  48. dipankar wrote:

    thanks..is worked!!!great

  49. abhinandan wrote:

    i want to says that this is not a good explain of changing the domain name

  50. [mab]L[oh]G wrote:

    2008 R2 Domäne – netbios name ändern…

    Ich hatte die Chance, diese Woche etwas in einer Produktivumgebung umzusetzen, was man normalerweise vielleicht mal in einer Teststellung macht: Eine nachträgliche NetBIOS Namensänderung einer 2008 R2 Domäne mit 2 AD Controllern, einer davon sogar mit …

  51. Spanky wrote:

    Getting the following error when running rendom /upload:

    C:\Windows\System32>rendom /showforest
    alsd.circ11.dcn [ForestRoot Domain, FlatName:ALSD]
    DomainDnsZones.alsd.circ11.dcn [PartitionType:Application]
    ForestDnsZones.alsd.circ11.dcn [PartitionType:Application]

    The operation completed successfully.

    C:\Windows\System32>rendom /upload
    Failed to upload Dns Root alias on the DN: CN=cf426965-7337-4ec0-af54-b8e73e05ae
    55,CN=Partitions,CN=Configuration,DC=alsd,DC=local, on host alsd-pdc.alsd.local.

    000021A2: SvcErr: DSID-030A0AE6, problem 5012 (DIR_ERROR), data 8610
    : The system cannot open the device or file specified. :110

    Any thoughts, please?

  52. Ixobelle wrote:

    worked great for me!

    there were a few lingering loose ends to tie up (changing the Primary DNS Suffix of the PDC to remove the lingering remnants of the old domain in MMC etc), but so far so good.

    My own domain is a tiny home network of 4 machines an a server, and I was running into issues where the internal domain (AD) and external domain(www., mail., etc) were using the same “xxxxx.com” suffix, which lead to me not being able to find http://www.xxxxxx.com internally, since no box in the LAN was named “www”, and this helped divide internal and external DNS.

    Thanks for the concise writeup!

  53. Md Masroor Islam wrote:

    Thanks a lot buddy.
    It is working fine……Thanks for keeping it simple and short.

Leave Your Comment

 
(c) 2008 - 2012 Shariq Sheikh. All Rights Reserved.