Windows 2008 R2 域控制器防止意外删除现有OU(组织单元)的设置:
1、以管理员身份运行Active Directory的Windows PowerShell模块;
2、键入以下命令来检查有哪些OU未进行意外删除的保护:
Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | ft
3、在Active Directory的Windows PowerShell模块命令提示符下,键入以下命令以保护OU:
Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true