How do I set the edsvaProtectFromDeletion attribute to true using PowerShell?
For example, setting "OU=TEST,OU=Servers,DC=domain,DC=local", I have tried:
1. Set-QadObject -Identity "OU=TEST,OU=Servers,DC=domain,DC=local" -ObjectAttributes @{edsvaProtectFromDeletion=$true}
2. Set-QadObject -Identity "OU=TEST,OU=Servers,DC=domain,DC=local" -ObjectAttributes @{edsvaProtectFromDeletion='true'}
3. Set-QadObject -Identity "OU=TEST,OU=Servers,DC=domain,DC=local" -ObjectAttributes @{protectedFromAccidentalDeletion=$true}
None of these commands return any errors. Nor do any of them actually set the OU as desired.
If I open the OU Advanced Properties in Active Roles and set the attribute to TRUE, this then ticks the box in the GUI as desired.