{"id":647,"date":"2012-04-12T15:55:46","date_gmt":"2012-04-12T15:55:46","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=647"},"modified":"2012-04-13T16:37:12","modified_gmt":"2012-04-13T16:37:12","slug":"protecting-ou-objects-from-accideental-deletion-in-active-directory","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=647","title":{"rendered":"Protecting OU objects from accidental deletion in Active Directory"},"content":{"rendered":"<div id=\"imcontent\">Get-ADOrganizationalUnit -filter * | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true<\/div>\n<div><\/div>\n<div><em><strong>This\u00a0Powershell command gets a list of all organizational units in Active Directory and sets &#8220;ProtectedFromAccidentalDeletion&#8221; on them. To remove this attribute from your OU&#8217;s you can end the script with $false<\/strong><\/em><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Get-ADOrganizationalUnit -filter * | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true This\u00a0Powershell command gets a list of all organizational units in Active Directory and sets &#8220;ProtectedFromAccidentalDeletion&#8221; on them. To remove this attribute from your OU&#8217;s you can end the script with $false<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-647","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":11,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/647\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/647\/revisions\/652"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}