From 69b65ed3605f7522bda0550a41c1ba78f4deedb7 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Fri, 23 Aug 2019 17:56:41 +0100 Subject: [PATCH] takeown: add page (#3252) --- pages/windows/takeown.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/windows/takeown.md diff --git a/pages/windows/takeown.md b/pages/windows/takeown.md new file mode 100644 index 000000000..2643a4f32 --- /dev/null +++ b/pages/windows/takeown.md @@ -0,0 +1,20 @@ +# takeown + +> Take ownership of a file or directory. +> More information: . + +- 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}}`