Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


This is an old revision of the document!

Take ownership of files on Windows

In order to be able to take ownership over certain files, import the following into registry:

Windows Registry Editor Version 5.00

@="Take Ownership"

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

@="Take Ownership"

@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"


Enter your comment:
A W᠎ E E᠎ H
windows/client_os/take_own.1511986751.txt.gz · Last modified: 2019/10/31 08:57 (external edit)