Avatar of Steven Hoong
Steven Hoong
 asked on

How to delete a computer that lives in an OU that no longer exist?

when I query computers in AD

dsquery computer -inactive 12 -limit 0

Open in new window


this computer shows up

CN=VDESKTOP-VM,OU=PA,....

Open in new window


That OU no longer exist and I'm trying to delete it but I keep getting

dsrm failed:CN=VDESKTOP-VM,OU=PA...:The directory service can perform the requested operation only on a leaf object

Open in new window

Windows Server 2012Active Directory

Avatar of undefined
Last Comment
Steven Hoong

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
FOX

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Steven Hoong

ASKER
thank you!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck