Tags
Open a powershell with AD Extensions:
Get-ADObject -Filter { (ObjectClass -eq “user”)} -SearchBase “OU=My Accounts,DC=my,DC=domain,DC=com” | Set-ADObject -ProtectedFromAccidentalDeletion $true
All users in the OU My Accounts will be protected….
01 Monday Dec 2014
Posted in Active Directory, Windows
Tags
Open a powershell with AD Extensions:
Get-ADObject -Filter { (ObjectClass -eq “user”)} -SearchBase “OU=My Accounts,DC=my,DC=domain,DC=com” | Set-ADObject -ProtectedFromAccidentalDeletion $true
All users in the OU My Accounts will be protected….