NanoTech-kw · Tech Guide Library

TAKEOWN CMD (Take Ownership)

Windows · CMD

Take ownership of a file or folder, including subfolders. Requires Administrator. Syntax: takeown /f [path] /r /d y

Step-by-step

  1. Open Command Prompt as Administrator (right-click Start > Terminal (Admin) / Command Prompt (Admin))
  2. Syntax: takeown /f [path] /r /d y
  3. Brief: Take ownership of a file or folder, including subfolders. Requires Administrator.
  4. Example: takeown /f C:\LockedFolder /r /d y
  5. Tip: Combine with icacls to grant yourself permissions afterward.

Reference: learn.microsoft.com

Open in the NanoTech-kw library →