What is the best way to fix NTFS file permissions to inherit parent?

How about right-clicking each parent directory, going to Properties, then Security tab, then click Advanced, then click Change Permissions, then check that checkbox that says "Replace all child object permissions with inheritable permissions from this object"?

If you have a ton of parent directories and you want to script this instead of doing it by hand:

icacls "c:\parentDirectory\*" /q /c /t /reset

Shoud have the same effect as clicking the Replace all child object permissions with inheritable permissions from this object checkbox.