Avatar of JJ KR
JJ KR
Flag for India asked on

Windows 2008 Migration

Dear Experts,

Thanks in advance. I Just successfully migrated windows 2008 DC  to windows 2012 DC, After migration I checked all OUs and objects inside OUs are successfully migrated to 2012. I also checked users are successfully log in to windows 2012 domain. The problem is when I check the computer name in windows 2012 DC and still showing the old computer name. Why so. If I want to change it, giving warning ... Please suggest..Windows-2012.JPGWindows-2012.JPG1.JPG
Active DirectoryWindows Server 2008Windows Server 2012

Avatar of undefined
Last Comment
Sean Plemons Kelly, CISSP

8/22/2022 - Mon
Sean Plemons Kelly, CISSP

Hello, JJ KR!

The name remaining the same is normal.

This TechNet article tells how to change the name of a DC in a domain where it is the only DC.

From the article:

1. Open a Command Prompt as an administrator: On the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, provide Domain Admins credentials, if required, and then click Continue.
2. At the command prompt, type the following command to add the new domain controller name, and then press ENTER:
netdom computername <CurrentComputerName> /add:<NewComputerName>
3.Type the following command to designate the new name as the primary computer name, and then press ENTER:
netdom computername <CurrentComputerName> /makeprimary:<NewComputerName>
4.Restart the computer.
5.After the computer restarts, open a Command Prompt.
6.At the command prompt, type the following command to remove the old domain controller name, and then press ENTER:
netdom computername <NewComputerName> /remove:<OldComputerName>



Cheers!
Sean
Scott C

The reason is that when you did your base install you didn't change the name while it was still in the workgroup.

You should be ok changing it now.  As the warning says it might be unavailable for a period of time.

I would schedule this for after hours.

You generally don't want to rename DCs.  It can cause some weird behavior but everything should work itself out once the new name is fully integrated.
JJ KR

ASKER
Dear Sean,

Thanks for replaying . I did as per your instruction. How ever the first command executed but second command its giving error.

C:\Users\Administrator>netdom computername W-IN-DC2K8 /add:W-IN-DC2012
The specified alternate computer name "W-IN-DC2012" does not contain a dot.
Although it is a valid DNS name, usually a DNS name consists of multiple
labels, for example server1.microsoft.com. This field MUST contain the full
DNS name of a computer.

Do you want to proceed (Y or N)?
Y
Successfully added W-IN-DC2012
as an alternate name for the computer.

The command completed successfully.


C:\Users\Administrator>netdom computername W-IN-DC2012 /makeprimary: W-IN-DC2

Unable to make W-IN-DC2012
the primary name for the computer.
The error is:

The network path was not found.

The command failed to complete successfully.


C:\Users\Administrator>

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Sean Plemons Kelly, CISSP

JJ KR,

Try:
netdom computername W-IN-DC2K8.testking.local /add:W-IN-DC2012.testking.local

Then:
netdom computername W-IN-DC2012.testking.local /makeprimary: W-IN-DC2.testking.local

Cheers!
Sean
JJ KR

ASKER
Dear Sean,

No results same error

C:\Users\Administrator>netdom computername W-IN-DC2K8.testking.local /add:W-IN-D
C2012.testking.local
Successfully added W-IN-DC2012.testking.local
as an alternate name for the computer.

The command completed successfully.


C:\Users\Administrator>netdom computername W-IN-DC2012.testking.local /makeprima
ry: W-IN-DC2.testking.local
Unable to make W-IN-DC2.testking.local
the primary name for the computer.
The error is:

The network path was not found.

The command failed to complete successfully.
Scott C

Is your 2008 domain controller still operational?  If so, just try the normal rename by clicking on "Change Settings".
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Sean Plemons Kelly, CISSP

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
JJ KR

ASKER
Dear Sean,

You are great its done DC name has been changed to windows 2012 how ever as the instructions you provided the step no 6 not working.

1. Open a Command Prompt as an administrator: On the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, provide Domain Admins credentials, if required, and then click Continue.
2. At the command prompt, type the following command to add the new domain controller name, and then press ENTER:
netdom computername <CurrentComputerName> /add:<NewComputerName>
3.Type the following command to designate the new name as the primary computer name, and then press ENTER:
netdom computername <CurrentComputerName> /makeprimary:<NewComputerName>
4.Restart the computer.
5.After the computer restarts, open a Command Prompt.
6.At the command prompt, type the following command to remove the old domain controller name, and then press ENTER:
netdom computername <NewComputerName> /remove:<OldComputerName>

The error is below. How ever the computer name has been changed.

C:\Users\Administrator>netdom computername W-IN-DC2012 /remove:W-IN-DC2K8
Unable to remove W-IN-DC2K8
as an alternamte name for the computer.
The error is:

Element not found.

The command failed to complete successfully.
Sean Plemons Kelly, CISSP

JJ KR,

Try netdom computername W-IN-DC2012.testking.local /remove:W-IN-DC2K8.testking.local

Cheers!
Sean