I can use DirectoryEntry.DeleteTree() to delete a Computer Account but when
there's a problem, the error message always seems to be "Unspecified Error".
I need to know whether I've got user credentials problems or non-existant
objects. Reading around the problem, it seems that the implementation isn't
very good and that you can get directly to ADSI using DirectoryEntry.Invoke
but I can't figure out the syntax.
Two questions:
1. Does anyone know the syntax for deleting an account using .Invoke
2. Will it give me a better error code. I've seen other pages showing
..Invoke which have returned ADSI-style 8007nnnn error codes but not for