Windows Take Ownership |verified| -

[HKEY_CLASSES_ROOT*\shell\takeownership\command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F"

Here is everything you need to know about what ownership is, why it exists, and how to bypass it safely. Windows uses a security model called Discretionary Access Control (DACL) . Every file and folder has an "owner" (usually the user account that created it) and a list of who is allowed to access it (ACLs). windows take ownership

Even if you log in as an Administrator, you do not automatically have full control over every file. System files (like C:\Windows\System32 ) are owned by NT SERVICE\TrustedInstaller . If you aren't TrustedInstaller, Windows blocks you. This prevents malware or clumsy users from deleting critical OS files and crashing the computer. [HKEY_CLASSES_ROOT*\shell\takeownership\command] @="cmd