Got it a very simple way (for what i wanted) even if its depreciated:
icacls "e:\program files" /grant administrators:F /t
Question
Due to the mounting of a partition, I would like to change Owner and ACL permissions (total control in my case) recursively (folders and sub-folders and files) with Powershell.
No correct solution
OTHER TIPS
Got it a very simple way (for what i wanted) even if its depreciated:
icacls "e:\program files" /grant administrators:F /t
Well for owner I found this way:
takeown /f "c:\folder\subfolder" /r