If you use ManageEngine ADmanager Plus then some your manual operations or automations can fail due to the &#8220;Protect from accidental deletion&#8221;. In this case it&#8217;s very useful to determine who has already this attribute enabled: Get-ADuser -Filter * -Properties * | select-object name, samaccountname,enabled, ProtectedFromAccidentalDeletion | export-csv -path c:\temp\protection-status.csv -NoTypeInformation if you need to disable this attribute pls visit my other post &nbsp;{"id":1493,"date":"2020-03-28T18:21:45","date_gmt":"2020-03-28T10:21:45","guid":{"rendered":"https:\/\/www.itforce.mn\/?p=1493"},"modified":"2020-03-28T19:21:44","modified_gmt":"2020-03-28T11:21:44","slug":"how-to-report-in-active-directory-all-protected-users","status":"publish","type":"post","link":"https:\/\/www.itforce.mn\/index.php\/2020\/03\/28\/how-to-report-in-active-directory-all-protected-users\/","title":{"rendered":"How to report in Active Directory all protected users"},"content":{"rendered":"<p>If you use ManageEngine ADmanager Plus then some your manual operations or automations can fail due to the &#8220;Protect from accidental deletion&#8221;. In this case it&#8217;s very useful to determine who has already this attribute enabled:<\/p>\n<pre>Get-ADuser -Filter * -Properties * | select-object name, samaccountname,enabled, ProtectedFromAccidentalDeletion | export-csv -path c:\\temp\\protection-status.csv -NoTypeInformation\r\n<\/pre>\n<p>if you need to disable this attribute pls visit my other <a href=\"http:\/\/www.itforce.mn\/index.php\/2020\/03\/28\/1498\/\">post<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,13,17,6],"tags":[],"class_list":["post-1493","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-it-governance","category-powershell-tips","category-smb"],"_links":{"self":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/comments?post=1493"}],"version-history":[{"count":3,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1493\/revisions"}],"predecessor-version":[{"id":1503,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1493\/revisions\/1503"}],"wp:attachment":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/categories?post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/tags?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}