ACTIVE DIRECTORY

is there any command shell or way to find CNF objects in active directory

like we have 4 or 5 domain controllers, don't know on where it s .

https://kickthatcomputer.wordpress.com/2014/11/22/seek-and-destroy-duplicate-ad-objects-with-cnf-in-the-name/

but how should i do query , how should  i reach that page ,do i need to use adsiedit?
pramod1Asked:
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.

Dariusz TykaICT Infrastructure Specialist Senior Commented:
You can use simple query below to find all duplicated AD objects
dsquery * -filter "(cn=*cnf:*)"
For more info you can read this MS article:
https://social.technet.microsoft.com/wiki/contents/articles/15435.active-directory-duplicate-object-name-resolution.aspx
0
pramod1Author Commented:
can i in any way see in GUI,
0
pramod1Author Commented:
I ran this in powershell but no output
0
What were the top attacks of Q1 2018?

The Threat Lab team analyzes data from WatchGuard’s Firebox Feed, internal and partner threat intelligence, and a research honeynet, to provide insightful analysis about the top threats on the Internet. Check out our Q1 2018 report for smart, practical security advice today!

Dariusz TykaICT Infrastructure Specialist Senior Commented:
Then you can use ADUC snap-in and saved query.  Search for (cn=*cnf:*)
See more here: https://kickthatcomputer.wordpress.com/2014/11/22/seek-and-destroy-duplicate-ad-objects-with-cnf-in-the-name/
0
pramod1Author Commented:
https://kickthatcomputer.wordpress.com/2014/11/22/seek-and-destroy-duplicate-ad-objects-with-cnf-in-the-name/

is there any way i can do query , i go to users and computers but get lost, also i ran the command but need to delete those can i get the whole output in some text format
0
Dariusz TykaICT Infrastructure Specialist Senior Commented:
ADUC -> left click on Saves queries -> New -> Query. Name it whatever you like. Click Define query and in Find field switch to custom search. Then click advanced tab and paste here (cn=*cnf:*). Clisk OK and once again OK to start search.
0
pramod1Author Commented:
cant type anything
Capture1.PNG
0
Dariusz TykaICT Infrastructure Specialist Senior Commented:
The find drop down menu should be 'custom search' not 'computers'.
0
pramod1Author Commented:
ok, but how should i delete them  when i get the result
0
Dariusz TykaICT Infrastructure Specialist Senior Commented:
Those are duplicated entries in active directory. If are not used can be safely deleted.
0
pramod1Author Commented:
so just right click and delete?
0
Dariusz TykaICT Infrastructure Specialist Senior Commented:
Yes indeed.
0
pramod1Author Commented:
will to go recycle bin or tombstone will clean it
0
Dariusz TykaICT Infrastructure Specialist Senior Commented:
Deleted objects will go to recycle bin (if enabled). Then when deleted objects lifetime has been exceeded – remember, 180 days most of its attributes will be deleted and object cannot be recovered. After recycled object has existed for the value of the Tombstone Lifetime, it is then physically deleted from the database via garbage collection. At the next online defrag, that whitespace will be recovered from the database.
More info on how AD recycle bin works you can find here:
https://blogs.technet.microsoft.com/askds/2009/08/27/the-ad-recycle-bin-understanding-implementing-best-practices-and-troubleshooting/
1

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
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
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.