Adding a Domain controller

  • Thread starter Thread starter Apollo
  • Start date Start date
A

Apollo

Hi,

I have a server with replication problems; Server1. Per Microsoft due to the
length of time (i.e. beyond 60 days) best pratice is to:
demote server,
metadata cleanup,
remove entires from all DNS servers,
delete computer account,
allow AD to settle (i.e. 24 hours) then
promote the server.
However server would not connect to partners so a DCPROMO /FORCEREMOVAL was
initiated, AD removed the server rebooted and was now in a workgroup then
the rest of the proceedure followed. This has been done on another server
previously successfully. This time the promotion of the server would not
take place each time I would recieve an error message stating "the specified
user already exists". I renamed SERVER1 to SERVER and rebooted (still in
workgroup at this stage) and attempted to DCPROMO error "the specified user
already exists". This I can image was due to the fact that the server was
originally called SERVER and renamed to SERVER1 a year ago, but the original
name was removed from AD (or so we thought).

After some searching I did find that an ADSI entry nneded to be deleted
(http://support.microsoft.com/kb/216498) this was done.Server was renamed
back to original SERVER1, rebooted and DCPROMO tried again, same error.

At present I have renamed the server SERVER01 and successfully DCPROMO'ed,
however I need to make the server name SERVER1. How do I achive this?

Thanks.
 
Hi ,

To rename a DC, you can follow the way described in following article:

<http://technet2.microsoft.com/WindowsServer/en/library/aad1169a-f0d2-47d5-b
0ea-989081ce62be1033.mspx?mfr=true>

However, I think the name server1 should be occupied.From a DC, run "net
computer \\server1 /DEL " to check the result.


Best regards,

Vincent Xu
Microsoft Online Partner Support

======================================================
Get Secure! - www.microsoft.com/security
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================



--------------------
 
Hi,

Thanks for the feedback. I have tried the command on our HQ DC result was:

"There is no such compuer: \\server1$"

Is there any other location where this name may exist? in ADSI maybe?

Thanks
 
Hi,

Try following script:

Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCOmmand.ActiveConnection = objConnection
objCommand.CommandText = _
"Select distinguishedName from
'LDAP://cn=Configuration,DC=fabrikam,DC=com' " _
& "where objectClass='nTDSDSA'"
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Timeout") = 30
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
objCommand.Properties("Cache Results") = False
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
Wscript.Echo "Computer Name: " &
objRecordSet.Fields("distinguishedName").Value
objRecordSet.MoveNext
Loop


Modify it to adapt to your enviroment and this will enumerate all DCs in
your domain.


Best regards,

Vincent Xu
Microsoft Online Partner Support

======================================================
Get Secure! - www.microsoft.com/security
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================



--------------------
 
Back
Top