Hi all!!

I've been stress-testing some utilities we use internally, specifically a
tool to "sync" users from AD to AD/AM (ok, not exactly sync; we just need a
user/computer object with the same names that those in AD). For the purpose,
I have created an OU in AD that I then filled with 1000000+ users (admod -sc
adau:1000000;SomePassword1;CN=.... a couple of times ).

The tool survived the beating, but now I want to delete the OU and the users
within, both in AD and ADAM. I thought that:

        admod -b "OU_DN" -rm

Would do the trick but it complains that it can't delete a non-leaf
(otherwise understandable). ADUC and ADAM-ADSIEdit let me say "delete", but
they take in the order of ages (they are at it now). Users&Comp. seems to
hang, and ADSIEdit every now and then comes up with a message box saying:

---------------------------
ADAM-ADSIEdit
---------------------------
The tree deletion is not finished.  The request must be made again to
continue deleting the tree. 
---------------------------
OK   
---------------------------

I click OK, select "delete" again on the OU, and on it goes...

My question is, I "know" that there has to be a better/quicker way to do
this that does not involve "listing" all objetct and piping them to admod?

Thanks a lot.

        Javier Jarava

PS: For bonus "points", I seem to recall some post on joe's blog about
having "progress dots" in admod that show objetcts being modified.. But I
wasn't able to find the proper switch in the docs, so when I created 1000000
users I got 1000000 DNs shown on screen. So, what is the proper option to
say "don't print all progress, just a running % or something like that"??

Thanks a bunch again.

                J

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/[email protected]/

Reply via email to