Results 1 to 3 of 3

Thread: DSRM.exe Active Directory command line tool

  1. #1
    Joe Guest

    DSRM.exe Active Directory command line tool

    I am trying to use the DSRM.exe utility in a script to remove a number of
    computer objects in AD, however, I'm having limited success. It seem I can
    remove a computer object if it is in a container, but not if it's in an OU.
    When I try to remove a computer object from an OU, I get an error message -
    dsrm failed:"The distiguished name" The directory service can perform the
    requested operation only on a leaf object.
    My understanding is that a leaf object is a computer or user object etc. Why
    is the script failing when I try to remove a computer object under an OU?

  2. #2
    Jeff Jones [MSFT] Guest

    Re: DSRM.exe Active Directory command line tool

    Computer objects are really containers. Do any of these computer objects
    have child items? In ADUC, you can use the View menu to select showing
    User, Groups, and Computers as Containers and see if they contain any items.

    --
    Jeff Jones [MSFT]
    Monad Development
    Microsoft Corporation
    This posting is provided "AS IS" with no warranties, and confers no rights.



    "Joe" <Joe@discussions.microsoft.com> wrote in message
    news:80096292-B2AB-41A9-AD08-70B5802CD1BA@microsoft.com...
    >I am trying to use the DSRM.exe utility in a script to remove a number of
    > computer objects in AD, however, I'm having limited success. It seem I
    > can
    > remove a computer object if it is in a container, but not if it's in an
    > OU.
    > When I try to remove a computer object from an OU, I get an error
    > message -
    > dsrm failed:"The distiguished name" The directory service can perform the
    > requested operation only on a leaf object.
    > My understanding is that a leaf object is a computer or user object etc.
    > Why
    > is the script failing when I try to remove a computer object under an OU?




  3. #3
    Joe Guest

    Re: DSRM.exe Active Directory command line tool

    Thanks Jeff, that was extremely helpful. I could see from the view menu "as
    containers" that the computer objects did have child objects. Realizing
    that, I added the -subtree parameter to the dsrm command and it worked fine.

    Joe


    "Jeff Jones [MSFT]" wrote:

    > Computer objects are really containers. Do any of these computer objects
    > have child items? In ADUC, you can use the View menu to select showing
    > User, Groups, and Computers as Containers and see if they contain any items.
    >
    > --
    > Jeff Jones [MSFT]
    > Monad Development
    > Microsoft Corporation
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    >
    >
    >
    > "Joe" <Joe@discussions.microsoft.com> wrote in message
    > news:80096292-B2AB-41A9-AD08-70B5802CD1BA@microsoft.com...
    > >I am trying to use the DSRM.exe utility in a script to remove a number of
    > > computer objects in AD, however, I'm having limited success. It seem I
    > > can
    > > remove a computer object if it is in a container, but not if it's in an
    > > OU.
    > > When I try to remove a computer object from an OU, I get an error
    > > message -
    > > dsrm failed:"The distiguished name" The directory service can perform the
    > > requested operation only on a leaf object.
    > > My understanding is that a leaf object is a computer or user object etc.
    > > Why
    > > is the script failing when I try to remove a computer object under an OU?

    >
    >
    >


Similar Threads

  1. Reporting tool for Active Directory
    By Soumen in forum Active Directory
    Replies: 4
    Last Post: 24-09-2010, 06:50 PM
  2. Replies: 3
    Last Post: 01-07-2009, 03:46 PM
  3. Windows 7 - BCDEDIT Command Line Tool
    By Orton in forum Software Development
    Replies: 3
    Last Post: 13-04-2009, 09:54 AM
  4. Replies: 2
    Last Post: 04-12-2008, 03:05 PM
  5. Command line tool to convert VC project files to Makefile
    By Harman in forum Software Development
    Replies: 3
    Last Post: 25-10-2008, 05:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,704,300.33556 seconds with 17 queries