Link to home
Start Free TrialLog in
Avatar of pramod1
pramod1Flag for United States of America

asked on

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?
Avatar of Dariusz Tyka
Dariusz Tyka
Flag of Poland image

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
Avatar of pramod1

ASKER

can i in any way see in GUI,
Avatar of pramod1

ASKER

I ran this in powershell but no output
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/
Avatar of pramod1

ASKER

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
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.
Avatar of pramod1

ASKER

cant type anything
Capture1.PNG
The find drop down menu should be 'custom search' not 'computers'.
Avatar of pramod1

ASKER

ok, but how should i delete them  when i get the result
Those are duplicated entries in active directory. If are not used can be safely deleted.
Avatar of pramod1

ASKER

so just right click and delete?
Yes indeed.
Avatar of pramod1

ASKER

will to go recycle bin or tombstone will clean it
ASKER CERTIFIED SOLUTION
Avatar of Dariusz Tyka
Dariusz Tyka
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial