If you can somehow identify them in a query like all contacts in OUX or all contacts with attribute=x then you could do a dsquery pipe to dsrm or an adfind query pipe to admod.
 
--
O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rimmerman, Russ
Sent: Thursday, January 26, 2006 11:27 AM
To: [email protected]
Subject: [ActiveDir] Deleting contacts via script

What's the easiest way to delete a bunch of contacts in AD with a script?  I've added AD accounts in the past via a script but never deleted or added contacts via a script.  Is there anything available today to make this easy?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail is confidential, may contain proprietary information
of the Cooper Cameron Corporation and its operating Divisions
and may be confidential or privileged.

This e-mail should be read, copied, disseminated and/or used only
by the addressee. If you have received this message in error please
delete it, together with any attachments, from your system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to