I am using two icacls command. If i do a restore, it doesnt stop inheritance on certain folders that the original source had. Here are the two commands. What other parameters do i need to correct this?
iCACLS D:\data /save c:\logfile.txt /t /c
iCACLS D:\ /restore c:\logfile.txt