TAKEOWN CMD (Take Ownership)
Take ownership of a file or folder, including subfolders. Requires Administrator. Syntax: takeown /f [path] /r /d y
Step-by-step
- Open Command Prompt as Administrator (right-click Start > Terminal (Admin) / Command Prompt (Admin))
- Syntax: takeown /f [path] /r /d y
- Brief: Take ownership of a file or folder, including subfolders. Requires Administrator.
- Example: takeown /f C:\LockedFolder /r /d y
- Tip: Combine with icacls to grant yourself permissions afterward.
Reference: learn.microsoft.com