I am having a problem when trying to delete a computer from AD.
I am working on an application to create and delete computer objects in Active Directory
If the application created the computer object, there is no problem deleting it again, but if the computer object is created by another user, I get access denied. And here is where it get realy strange. If I open the Active Directory Users and Computers,
with the same account I am using in the application, I can delete it, but I can not delete the object from my application.
I have tried to set the permissions for the object to Full and then it is posible to delete the object, but only if I set the permissions to Full. If I select every permission exept Full, I get Access Denied.
Is there any of you that has seen this behavior before or has and idea to why this is happening?
Any help is appreciated.
This is the function I use for deleting the computer object. strComputer is the ldap path for the computer object.
Dim objComputer As DirectoryEntry
objComputer = New DirectoryEntry(strComputer, "domain\username",
View Complete Post