Skip to content

How To Use Takeown Command

: Be careful when taking ownership of C:\Windows or C:\System32 files. These are owned by TrustedInstaller for a reason; changing ownership can break Windows Updates or system stability.

# File ownership takeown /f "file.txt"

Often you'll use takeown with icacls for full control: how to use takeown command

takeown /f "C:\Folder" /r /d y