[Logo] LDAPSoft LDAP And Active Directory Tools Community Forums
  [Search] Search   [Register] Register /  [Login] Login 
 
Delete in bulk from Active Directory  XML
Forum Index » General Discussion
Author Message
brown1



Joined: 10/01/2009 06:57:30
Messages: 3
Offline

We currently have a list of computer names we will need to delete in bulk from Active Directory.
Is there any way to import this current list, or compare this list to an OU and have it display the names found in the list so we may delete them with this application?
support



Joined: 27/06/2008 19:01:18
Messages: 123
Offline

You can't import the list, what you can do is get the cn or dn from the list and construct a statement like this

1) Select FROM o=stooges where cn='test331copy of Curley Howard1' subtreescope

2) Now Click on the SQL button on the top

3) Run the statment, if you get the results change the statement to
DELETE FROM o=stooges where cn='test331copy of Curley Howard1' subtreescope


4) Run the delete statement, confirm the records and click 'Yes'

You will have to do it for all the records in the list

Make sure that you run the statements in the dev environment before running them against production.
brown1



Joined: 10/01/2009 06:57:30
Messages: 3
Offline

Is the "o" defined as the list object or the OU the computer name would be found in?
support



Joined: 27/06/2008 19:01:18
Messages: 123
Offline

Replace o=stooges with something like OU=US,DC=LDAPSOFT,DC=COM or DC=LDAPSOFT,DC=COM
this is the search base - It is the container containing the computer

Replace cn='test331copy of Curley Howard1'
with cn=computername or distinguishedName='Full Computer DN'
brown1



Joined: 10/01/2009 06:57:30
Messages: 3
Offline

That makes perfect sense now!
Thanks.
 
Forum Index » General Discussion
Go to:   
[Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
Powered by JForum 2.1.9 © JForum Team