Domain Object Security

Setting Multiple Domain Object as Unprotected

This is usually applicable when there’s a need to move multiple users to another OU. If they are set to be protected from accidental deletion, they also cannot be moved to another OU.

c:\> gc PATH_TO\FILE.txt | Get-ADUser -Properties * | Set-ADObject -
ProtectedFromAccidentalDeletion $False -Verbose 

The file users.txt should contain the list of domain usernames that will be modified.