Microsoft/Windows Server 2012

How to Rename Domain Name in Windows Server 2012

장성한군사 2019. 2. 19. 23:47

On DC

1. Create New Zone in DNS manager for New Domain

-Primary Zone with Active Directory


2. Open CMS as a administrator

3. In CMD, type rendom /list and press enter – this command use to generate a state file named Domainlist.xml. This file contains the current forest configuration.

> cd \

> rendom /list

> dir Domainlist.xml

4. Edit Domainlist.xml

<?xml version ="1.0"?>

<Forest>

<Domain>

<!-- PartitionType:Application -->

<Guid>b6146dd8-27b9-4ef2-afda-efa106f8a26d</Guid>

<DNSname>ForestDnsZones.contoso.local</DNSname>

<NetBiosName></NetBiosName>

<DcName></DcName>

</Domain>

<Domain>

<!-- PartitionType:Application -->

<Guid>e699d303-8025-4a2e-80c6-67bfa993d32d</Guid>

<DNSname>DomainDnsZones.contoso.local</DNSname>

<NetBiosName></NetBiosName>

<DcName></DcName>

</Domain>

<Domain>

<!-- ForestRoot -->

<Guid>5ba3ac0c-c24b-464b-a65c-0f724b4f108a</Guid>

<DNSname>contoso.local</DNSname>

<NetBiosName>CONTOSO</NetBiosName>

<DcName></DcName>

</Domain>

</Forest> 


5. 

C:\>rendom /showforest

contoso.local [ForestRoot Domain, FlatName:CONTOSO]

        DomainDnsZones.contoso.local [PartitionType:Application]

        ForestDnsZones.contoso.local [PartitionType:Application] 


6.

C:\>rendom /upload


작업을 완료했습니다.


C:\>rendom /prepare

DC의 응답을 기다리는 중입니다.

DC의 응답을 기다리는 중입니다.

WIN-DC.contoso.com이(가) 준비되었습니다.

1개 서버 연결됨. 0 서버가 오류를 반환했습니다.


작업을 완료했습니다.


C:\>rendom /execute

DC의 응답을 기다리는 중입니다.

DC의 응답을 기다리는 중입니다.

WIN-DC.contoso.com에서 스크립트를 실행했습니다.

1개 서버 연결됨. 0 서버가 오류를 반환했습니다.


작업을 완료했습니다. 


7. This DC wil be reboot


8.

C:\>gpfixup /olddns:contoso.com /newdns:contoso.local

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:\>gpfixup /oldnb:contoso /newnb:contoso

Group Policy fix up utility Version 1.1 (Microsoft)

There is no fix up to be done as the DNS name and NetBIOS name of domain have no

t changed.

There are some errors during the execution of gpfixup tool, please check.


C:\>rendom /clean

작업을 완료했습니다.


C:\>rendom /end

작업을 완료했습니다.