清空 Active Directory 回收站

 •  Filed under windows, Active Directory
Get-ADObject -Filter {isDeleted -eq $true -and Name -like "*DEL:*"} -IncludeDeletedObjects | Remove-ADObject -Confirm:$false