{"id":1682,"date":"2023-02-26T20:24:59","date_gmt":"2023-02-26T14:54:59","guid":{"rendered":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/"},"modified":"2023-02-26T20:24:59","modified_gmt":"2023-02-26T14:54:59","slug":"unable-to-delete-ad-account-using-domain-admin-account","status":"publish","type":"question","link":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/","title":{"rendered":"Unable to delete AD account (using Domain Admin account)"},"content":{"rendered":"<div class=\"_2FCtq-QzlfuN-SwVMUZMM3 _2v9pwVh0VUYrmhoMv1tHPm t3_hm7e9d\">\n<div class=\"y8HYJ-y_lTUHkQIc1mdCq _2INHSNB8V5eaWp4P0rY_mE\">\n<div class=\"_2SdHzo12ISmrC8H86TgSCp _29WrubtjAcKqzJSPdQqQ4h \">\n<p>Hi Guys!,<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4\">\n<div class=\"_292iotee39Lmt0MkQZ2hPV RichTextJSON-root\">\n<p>I am unable to delete a user in AD. I tried in GUI and also in powershell using a domain admin account but I still cannot delete it. This is the error message in powershell:<\/p>\n<p>The directory service can perform the requested operation only on a leaf object<\/p>\n<p>It looks like it has an Active Sync device tied up on the account, however we already deleted the mailbox of the user, so even if we query in exchange powershell, it would say user not found.<\/p>\n<p>The user is not on a &#8220;protected OU&#8221;, it was before but we already moved it to a different OU.<\/p>\n<p>So now, my main problem is how to remove the active sync device that is tied up on his account. I already extracted a list of all mobile devices in exchange and I cannot find the user<\/p>\n<p>Thanks in advance!<\/p>\n<\/div>\n<\/div>\n<div class=\"_1hwEKkB_38tIoal6fcdrt9\">\n<div class=\"_3-miAEojrCvx_4FQ8x3P-s\">\n<div class=\"_1UoeAeSRhOKSNdY_h3iS1O _3m17ICJgx45k_z-t82iVuO _3U_7i38RDPV5eBv7m4M-9J _2qww3J5KKzsD7e5DO0BvvU\"><\/div>\n<\/div>\n<\/div>\n","protected":false},"author":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[12],"question_tags":[],"class_list":["post-1682","question","type-question","status-publish","hentry","question-category-active-directory"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Unable to delete AD account (using Domain Admin account) - WindowsTechno Community<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unable to delete AD account (using Domain Admin account) - WindowsTechno Community\" \/>\n<meta property=\"og:description\" content=\"Hi Guys!, I am unable to delete a user in AD. I tried in GUI and also in powershell using a domain admin account but I still cannot delete it. This is the error message in powershell: The directory service can perform the requested operation only on a leaf object It looks like it has [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/\" \/>\n<meta property=\"og:site_name\" content=\"WindowsTechno Community\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/\",\"url\":\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/\",\"name\":\"Unable to delete AD account (using Domain Admin account) - WindowsTechno Community\",\"isPartOf\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/#website\"},\"datePublished\":\"2023-02-26T14:54:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/community.windowstechno.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Questions\",\"item\":\"https:\/\/community.windowstechno.com\/community\/questions\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Unable to delete AD account (using Domain Admin account)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/#website\",\"url\":\"https:\/\/community.windowstechno.com\/community\/\",\"name\":\"WindowsTechno Community\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/community.windowstechno.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/#organization\",\"name\":\"WindowsTechno Community\",\"url\":\"https:\/\/community.windowstechno.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg\",\"contentUrl\":\"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg\",\"width\":335,\"height\":101,\"caption\":\"WindowsTechno Community\"},\"image\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unable to delete AD account (using Domain Admin account) - WindowsTechno Community","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/","og_locale":"en_US","og_type":"article","og_title":"Unable to delete AD account (using Domain Admin account) - WindowsTechno Community","og_description":"Hi Guys!, I am unable to delete a user in AD. I tried in GUI and also in powershell using a domain admin account but I still cannot delete it. This is the error message in powershell: The directory service can perform the requested operation only on a leaf object It looks like it has [&hellip;]","og_url":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/","og_site_name":"WindowsTechno Community","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/","url":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/","name":"Unable to delete AD account (using Domain Admin account) - WindowsTechno Community","isPartOf":{"@id":"https:\/\/community.windowstechno.com\/community\/#website"},"datePublished":"2023-02-26T14:54:59+00:00","breadcrumb":{"@id":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/community.windowstechno.com\/community\/question\/unable-to-delete-ad-account-using-domain-admin-account\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/community.windowstechno.com\/community\/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https:\/\/community.windowstechno.com\/community\/questions\/"},{"@type":"ListItem","position":3,"name":"Unable to delete AD account (using Domain Admin account)"}]},{"@type":"WebSite","@id":"https:\/\/community.windowstechno.com\/community\/#website","url":"https:\/\/community.windowstechno.com\/community\/","name":"WindowsTechno Community","description":"","publisher":{"@id":"https:\/\/community.windowstechno.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/community.windowstechno.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/community.windowstechno.com\/community\/#organization","name":"WindowsTechno Community","url":"https:\/\/community.windowstechno.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg","contentUrl":"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg","width":335,"height":101,"caption":"WindowsTechno Community"},"image":{"@id":"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question\/1682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/types\/question"}],"replies":[{"embeddable":true,"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/comments?post=1682"}],"wp:attachment":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/media?parent=1682"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question-category?post=1682"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question_tags?post=1682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}