Tuesday, 29 November 2011

All OUs in this domain should be protected from accidental deletion


Get-ADOrganizationalUnit -filter * -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true

No comments:

Post a Comment