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

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

HERE 2008 r2 nal 單元 ati prot protect per false

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

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