Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



DSRM.exe Active Directory command line tool

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-03-2006
Joe
 
Posts: n/a
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?

Reply With Quote
  #2  
Old 10-03-2006
Jeff Jones [MSFT]
 
Posts: n/a
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?



Reply With Quote
  #3  
Old 10-03-2006
Joe
 
Posts: n/a
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?

>
>
>

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "DSRM.exe Active Directory command line tool"
Thread Thread Starter Forum Replies Last Post
Reporting tool for Active Directory Soumen Active Directory 4 24-09-2010 06:50 PM
Active Directory Migration Tool User Migration Renaming Display nameTarget Domain djlanza@gmail.com Active Directory 3 01-07-2009 03:46 PM
Windows 7 - BCDEDIT Command Line Tool Orton Software Development 3 13-04-2009 09:54 AM
"Active Directory Health Check" (ADHC) tool available to public? Hridey Active Directory 2 04-12-2008 03:05 PM
Command line tool to convert VC project files to Makefile Harman Software Development 3 25-10-2008 05:19 PM


All times are GMT +5.5. The time now is 03:22 PM.