The /reset
flag in the icacls
command restores all Access Control Lists (ACLs) for a file or directory to their default inherited permissions.
This removes any custom or problematic permissions, such as obsolete SIDs, that might have caused issues when trying to modify them manually.
After resetting, the permissions revert to their default state, allowing you to apply further changes without conflicts from inherited or custom rules.