The best way to fix NTFS file permissions to inherit parent is to use Icacls utility
icacls "c:\RootDirectory\*" /q /c /t /reset
/q = Suppresses success messages.
/c = Continues the operation despite any file errors. Error messages will still be displayed.
/t = Performs the operation on all specified files in the current directory and its subdirectories.
/reset = Replaces ACLs with default inherited ACLs for all matching files.