Remove Metadata for off-line DC

Hello All,

I am trying to remove an old SBS DC that is no longer online.  I was able to remove it from ADSS and ADUC but when I run the ntdsutil and clean the metadata I get the error in the attached file.  The new server is 2016 and it is the DC and holds all the operations masters and is the GC.  I can't remember if 2016 cleans up all metadata once the DC is removed from ADSS or not - I thought it did hence the reason I am getting the error???  I have also already manually removed everything from DNS for the old server.

Any suggestions if the metadata is still there.

Regards,

Rob
Robert BattagliaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeff GloverSr. Systems AdministratorCommented:
No attached file.
Robert BattagliaAuthor Commented:
Sorry.  It said that it was attached.  Here it is again.

Regards,

Rob
2019-04-08_22-00-04.jpg
Patrick BogersDatacenter platform engineer LindowsCommented:
Hi
If it is gone from the OU domain controllers and no longer in sites and services (for replicating) i think you are good to go.
You can also tun netdom query against the domain controllers but surely it wont pop up.

Cheers
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Jeff GloverSr. Systems AdministratorCommented:
After looking at the attachment, I cannot tell if you are running all the commands correctly. This is the method to use
In a Command Prompt (As Administrator)
 Type ntdsutil
Type Metadata Cleanup
Type connections
Type connect to Server <name of an existing DC>
Type q
Type Select operation target
You will get a Select Operation target prompt
Type list domains
The domains will be listed with a number for each
Type Select domain <number>
Type list sites
Sites will be listed the same as domains, each with a number
Type Select site <number>
Type List Servers in Site
Servers will be listed by name with a number for each. Find the old server you want to delete
Type Select server <number>
Type q
This will bring you back to the metadata cleanup prompt. Type remove selected server


Then type quit and enter until you are back at the command prompt
Next make sure the server is removed from AD sites and services and make sure all DNS records pointing to the server have been removed

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Robert BattagliaAuthor Commented:
Thanks for the help.  It did not show as an active server so I think that removing it from ADSS also removed the metadata.  I remember reading somewhere that Server 2016 does that automatically when you removed the server from ADSS.  I had already removed it from ADUC under domain controllers and I removed all reference to it from DNS.

Regards,

Rob
Robert BattagliaAuthor Commented:
Thanks.  I am all set.  It did not show up in the ntdsutil as a listed server in the domain.  So I think that by removing it from the ADSS the first time it removed all of the metadata associated with it.  I remember reading somewhere that server 2016 will remove the metadata automatically if you remove the item from ADSS.  I have already removed everything from DNS and removed it from ADUC under the domain controllers.

Regards,

Rob
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2016

From novice to tech pro — start learning today.