Looking for a tool/utility that can remove users from Active Directory

Posted on 2005-04-20
Last Modified: 2012-05-05
We have are using a third party application that automatically creates a user in active directory when we add a user to the application.  The problem is, that when we use the application to remove the user from the application the user is left in AD.  If we go to add the user to the application again the application fails because the user alrady exist in AD.  The developer's recommend work-around/fix is to manually use AD Admin tools in 2003 toremove the user.  Well ya, that works but is obviously a multistep process we would like to avoid because we could potentially be adding and removing nunerous accounts in a given week/month.

The application does have a web servce that we can use to use XML to add the accounts to the application and AD, but of course their removal command again falls short and does not remove the user from AD.  We make calls to that from our custom app to add users to the 3rd party application.

What I am looking for is another webservice or component that I can use from within our custom application (using VB.NET) to make a call to the AD server and remove the user from AD.

I would have to believe that this has already been done, but I can't find any references to it anywhere.

Help is needed!


Question by:BladesAway
    LVL 13

    Accepted Solution

    Hi Scott,

    Microsoft puts many vb tools on there website, take a look at:

    This is a site where they tell you how to remove a user with vb (you have to rebuild it to your needs).

    If you browse to you will find the homepage of the scriptcenter of Microsoft.

    Hope this will help you.

    LVL 1

    Assisted Solution

    Use the "dsrm" or "dsmod" utilities for Deleteing or Modifying Active Directory objects.  They can be found in the 2003 Resource Kit.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now