Click here to Skip to main content
15,885,195 members

Comments by LNogueira (Top 11 by date)

LNogueira 13-May-15 5:05am View    
Just run a FOR cycle and store the random values in a list.
LNogueira 11-May-12 12:10pm View    
I know that DeleteTree works. But i was trying to achieve the same without the DeleteTree permission. Maybe iterate over the leafs of a container and delete one by one and then delete the parent container, but i cant found a way to iterate over the leafs of a container...
As it seems the only way to do it, i'm gonna accept your solution as correct.
Thank you
LNogueira 9-May-12 6:10am View    
Yes. It returns only one object. My adPath is the Distinguish Name of the object.
LNogueira 8-May-12 17:50pm View    
Have you tried your suggestion? It doesn't even compile... You need to use the constructor parameters. Check out http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.computerprincipal.aspx
LNogueira 8-May-12 17:37pm View    
Deleted
Have you tried your suggestion? It doesn't even compile... You need to use the constructor parameters. Check out http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.computerprincipal.aspx