1. 程式人生 > >Windows 2008 R2 域控制器防止意外刪除現有OU的設定

Windows 2008 R2 域控制器防止意外刪除現有OU的設定

 

 

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