Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 help and support Forum Windows 8 Forum Vista Tutorials

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroup Archive > Misc Newsgroups > PowerShell

Vista - UNABLE to delete object using remove-qadobject


 
 
12-30-2008   #1 (permalink)
IT Staff


 

UNABLE to delete object using remove-qadobject

Remove-QADObject : The directory service can perform the requested operation
only on a leaf object. (Exception from HRESULT: 0x80
072015)


I am trying to delete an COMPUTER object. and it does not work.

remove-qadobject -identity "mydomain/$computername$"




My System SpecsSystem Spec
12-30-2008   #2 (permalink)
IT Staff


 

Re: UNABLE to delete object using remove-qadobject

adding on ..

Only able to delete computer object if i put a -deletetree.

remove-qadobject -identity "mydomain/$computername$" -deletetree.

Why is there a need to put deletetree ? The word deletetree is misleading
like deleting the WHOLE OU where the computer object exists ...anyone care
to explain ?



"IT Staff" <jkklim@xxxxxx> wrote in message
news:e%23uxPJvaJHA.1704@xxxxxx
Quote:

> Remove-QADObject : The directory service can perform the requested
> operation only on a leaf object. (Exception from HRESULT: 0x80
> 072015)
>
>
> I am trying to delete an COMPUTER object. and it does not work.
>
> remove-qadobject -identity "mydomain/$computername$"
>

My System SpecsSystem Spec
12-30-2008   #3 (permalink)
Rob Campbell


 

RE: UNABLE to delete object using remove-qadobject


http://forums.techarena.in/server-scripting/475363.htm

"IT Staff" wrote:
Quote:

> Remove-QADObject : The directory service can perform the requested operation
> only on a leaf object. (Exception from HRESULT: 0x80
> 072015)
>
>
> I am trying to delete an COMPUTER object. and it does not work.
>
> remove-qadobject -identity "mydomain/$computername$"
>
>
>
My System SpecsSystem Spec
12-31-2008   #4 (permalink)
Shay Levy [MVP]


 

Re: UNABLE to delete object using remove-qadobject

Hi IT,

You need to use DeleteTree when the object you're trying to delete contains
child objects.
You can see the child objects when you browse the object with ADSIEDIT.


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar



IS> Remove-QADObject : The directory service can perform the requested
IS> operation
IS> only on a leaf object. (Exception from HRESULT: 0x80
IS> 072015)
IS> I am trying to delete an COMPUTER object. and it does not work.
IS>
IS> remove-qadobject -identity "mydomain/$computername$"
IS>


My System SpecsSystem Spec
 

UNABLE to delete object using remove-qadobject problems?



Thread Tools


Similar topics to: UNABLE to delete object using remove-qadobject
Thread Forum
Delete Files where-object CreatedDate PowerShell
move-qadobject PowerShell
Re: Unable to cast COM object of type 'ADODB.RecordsetClass' to class type 'System.Object[]' .NET General
Unable to Select-Object PowerShell
Remove active directory object from group PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50