Is there any PowerShell script that restore defaults of the security settings on a computer/user object.
The reason is that, I have an script that remove unknown SIDs in Active Directory , but sometimes the script can’t remove SID and we need to press the button “Restore defaults”
Thanks for your support and your time.
Take a look at this script: https://gallery.technet.microsoft.com/scriptcenter/Reset-AD-Object-permissions-d71d9169
I used it to make a new script for a friend of mine and it worked as expected!