5
2
After changing the ownership of executables in the Windows directory (explorer.exe
, regedit.exe
, etc.), I can't seem to change it back to TrustedInstaller
using icacls.exe
. Using the GUI method (Properties → Security → Advanced → Owner) works fine though.
Doing the same thing to any other file under Windows, that is not an executable, works fine. Tried the same under safe-mode, no luck.
These are the 2 basic commands I'm using:
takeown /F C:\Windows\explorer.exe /A
icacls C:\Windows\explorer.exe /setowner "NT SERVICE\TrustedInstaller"
Edit: Forgot to mention the error I'm receiving is 'Access denied'.
C:\Windows\System32>takeown /F c:\Windows\explorer.exe /A
SUCCESS: The file (or folder): "c:\Windows\explorer.exe" now owned by the administrators group.
C:\Windows\System32>icacls c:\Windows\explorer.exe /setowner "NT SERVICE\TrustedInstaller"
c:\Windows\explorer.exe: Access is denied.
Successfully processed 0 files; Failed processing 1 files
There are tools that claim they can solve problems like this. You say it doesn't work but don't elaborate.
– Ramhound – 2015-03-16T18:31:37.770My bad, I'll try to be more clear. The action fails, claiming access denied. Sadly, installing external tools isn't an option. Portable tools like sysinternals or setAcl should be fine. – BarCo – 2015-03-16T21:37:24.450
1Do you still regard this as an open question? If you consider it to be resolved, please post the solution (granting full permissions to the Administrators group) as an answer and remove it from the question. Then accept the answer. – G-Man Says 'Reinstate Monica' – 2017-07-10T16:03:46.037
@G-Man, done. Sorry for taking so long. – BarCo – 2017-09-11T15:36:28.547