mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 21:42:41 +00:00
26 lines
618 B
Plaintext
26 lines
618 B
Plaintext
---
|
||
syntax: markdown
|
||
tags: [tldr, windows]
|
||
source: https://github.com/tldr-pages/tldr.git
|
||
---
|
||
# 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 oile}}`
|
||
|
||
- Take ownership of the specified directory:
|
||
|
||
`takeown /d {{path o\directory}}`
|
||
|
||
- Take ownership of the specified directory and all subdirectories:
|
||
|
||
`takeown /r /d {{path o\directory}}`
|
||
|
||
- Change ownership to the Administrator group instead of the current user:
|
||
|
||
`takeown /a /f {{path oile}}`
|