Defeating “TrustedInstaller” with a Command Line Snippet
Posted: January 6, 2012 Filed under: NEZzen Leave a comment »Here’s a little piece of code to recursively take ownership of a folder protected by “TrustedInstaller” on Windows 7.
takeown /f %1 /r /d y && icacls %1 /grant Administrators:F /t
Save this line in a .CMD file and call it with the directory you want to use it on as the first parameter. You will need to have elevated (Administrator) permission to do this properly.