no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | windows:client_os:take_own [2020/01/27 12:09] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Take ownership of files on Windows ====== | ||
+ | < | ||
+ | takeown /R /A /F foldername /D N | ||
+ | icacls foldername /grant Administrators: | ||
+ | </ | ||
+ | In order to be able to take ownership over certain files, import the following into registry: | ||
+ | < | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_CLASSES_ROOT\*\shell\runas] | ||
+ | @=" | ||
+ | " | ||
+ | |||
+ | [HKEY_CLASSES_ROOT\*\shell\runas\command] | ||
+ | @=" | ||
+ | " | ||
+ | |||
+ | [HKEY_CLASSES_ROOT\Directory\shell\runas] | ||
+ | @=" | ||
+ | " | ||
+ | |||
+ | [HKEY_CLASSES_ROOT\Directory\shell\runas\command] | ||
+ | @=" | ||
+ | " | ||
+ | </ |