New
#380
Hello, I'm a software engineer and use take ownership quite often in my line of work and noticed a slight quirk/issue with the way you have the ICACLS command set up. When I use your Take Ownership from the context menu, while it recursively does takeown properly, it only applies the ICACLS command to the root folder and not for subdirectories. So what happens is even after Take Ownership is ran, the user can still encounter this popup on sub-directories:
https://i.gyazo.com/a8d0910adaca75b6...7cd9920557.png
The issue is that the OWNER RIGHTS group doesn't get added to subdirectories. This is because the /t flag is missing from ICACLS and should be added to your registry file for this to work properly. I'm not sure if it worked without the /t flag on older versions of Windows but this is how it needs to be done on Windows 10 at least to mitigate that popup. While omitting the /t flag doesn't hinder the user from entering the folder as they can click Continue on the popup, it becomes annoying when dealing with deeply rooted subdirectories.
Screenshot of a sub-directory's permissions after your Take Ownership is run from the root: https://i.gyazo.com/7637a10a85f01867...0873ad5eca.png
Screenshot of the same sub-directory after I added the /t flag to ICACLS: https://i.gyazo.com/dead81d6a585e9d4...ab6a772f89.png
Hope you will take this into consideration.
Thank you @mike406, and welcome to Ten Forums. :)
I have updated the tutorial to have the /t flag included for the ICACLS commands now.