1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/windows/takeown.md
Emily Grace Seville c52cc074d9
windows/*.md: make placeholders more compatible with CLIP ones (#9872)
* Make placeholders more compatible with CLIP ones

* Update pages/windows/doskey.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

* Update pages/windows/doskey.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
2023-02-20 15:23:49 +08:00

530 B

takeown

Take ownership of a file or directory. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/takeown.

  • Take ownership of the specified file:

takeown /f {{path\to\file}}

  • Take ownership of the specified directory:

takeown /d {{path\to\directory}}

  • Take ownership of the specified directory and all subdirectories:

takeown /r /d {{path\to\directory}}

  • Change ownership to the Administrator group instead of the current user:

takeown /a /f {{path\to\file}}