DirectoryServices: How to remove user from AD

  • Thread starter Thread starter killbill
  • Start date Start date
K

killbill

Hi All,

I cannot figure out how i can delete user in AD with DirectoryServices
using ldap query?

Thanks
 
killbill said:
Hi All,

I cannot figure out how i can delete user in AD with DirectoryServices
using ldap query?

If the item to remove is a container use DirectoryEntry.DeleteTree. If the
item is an empty container or a noncontainer use
DirectoryEntries.Remove(DirectoryEntry entry).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top