All OUs in this домен should be protected from accidental deletion.
All OUs in this домен should be protected from accidental deletion.
Severity: Warning
Problem: Some organizational units (OUs) in this домен are not protected from accidental deletion.
Impact: 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.
Resolution:Make sure that all OUs in this домен are protected from accidental deletion.
Best Practices Analyzer
With Active Directory Users and Computers console
To “protect an OU from accidental deletion”, do the following:
- ВІДЧИНЕНО Active Directory Users and Computers console;
- Right click the OU that you want to protect from accidental deletion, і натисніть Properties;
- Go to the tab Object, check “Protect object from accidental deletion” and click добре.
ПРИМІТКА: If you don’t see the Object tab you must enable Advanced Features. In the Active Directory Users and Computers, console click View and select Advanced Features.
With Windows PowerShell
1. бігти Windows PowerShell as Admin on Домен Контролер;
2. Type the following to list all OU’s where the option “Protect object from accidental deletion” is disabled:
Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | де {$_.ProtectedFromAccidentalDeletion -eq $false} | ft
3. Enter the following command in PowerShell:
Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | де {$_.ProtectedFromAccidentalDeletion -eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true
4. To verify all OU’s are modified, enter this command in PowerShell:
Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | де {$_.ProtectedFromAccidentalDeletion} | ft
5. The column ProtectFromAccidentalDeletion should be True in all lines.