All OUs in this domain should be protected from accidental deletion

0 Flares 0 Flares ×

If all OUs in your Active Directory domains are not protected from accidental deletion, your Active Directory environment can experience disruptions that might be caused by accidental bulk deletion of objects.

To avoid that here the instruction

1. Click Start, click Administrative Tools, right-click Active Directory Module for Windows PowerShell, and then click Run as administrator.

power3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. At the Active Directory module command prompt, type the following command to check with OUs are not protected, and then press ENTER:

power1

 

 

 

 

 

Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | ft

At the Active Directory module command prompt, type the following command to protect the OUs that you identified in Step 2, and then press ENTER:

 Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true

Run the command in Step 2 again to verify the OUs are protected.

Anderson Alfaro
I am passionate for knowledge of Cloud technologies and reading the Bible as both make sense to me, but this last one keeps me on the ground and not in the cloud. Prov 16:18
VCP - MCSA - MCTS - RHCSA - RHCE - RHCVA

IF YOU WANT TO WRITE HERE AS A SPONSOR, PLEASE SEND ME AN EMAIL
Note: I am in the process of learning English, if you notice some mistakes, please let me know. I'll appreciate that. Thank you





Related News

2 Comments to All OUs in this domain should be protected from accidental deletion

  1. Después de mejorar todo lo anterior, en el tiempo que nos dure el escudo sin desesperarnos por
    atacar, nnos dispondremos en modo batalla.
    f81d03dc15e3910e791953eba663265f

    • Anderson Alfaro says:

      La Biblia de las Américas
      Bendeciré a los que te bendigan, y al que te maldiga, maldeciré. Y en ti serán benditas todas las familias de la tierra.
      Dios nos dice eso a nosotros. Tu pelea es con el Dios creador de los cielos y la tierra, oraré por tí para que te muestre su gran amor.

      Saludos
      Andy

Leave a Reply

Your email address will not be published. Required fields are marked as *

*

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 0 Flares ×