Active Directory "Restore defaults" Button in Advanced Security


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”


Any idea?

Thanks for your support and your time.