Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| 2025-03-05 08:15:08 | ![]() 78 Views |
Timecodes:
00:00 Intro
00:48 Take ownership of files or folders via File Explorer
01:06 Take ownership of files or folders using Command Prompt
01:28 Take ownership of files or folders via Registry Editor
Links:
https://www.thewindowsclub.com/you-require-permission-from-trustedinstaller-to-make-changes-to-this-folder
https://www.thewindowsclub.com/take-ownership-windows-8
https://www.thewindowsclub.com/how-to-run-command-prompt-as-an-administrator
https://www.thewindowsclub.com/backup-and-restore-registry-windows
Command:
takeown /f “C://Windows” /R /D Y
takeown /f “C://Windows// regedit.exe
Take Ownership command:
[-HKEY_CLASSES_ROOT//*//shell/unas]
[HKEY_CLASSES_ROOT//*//shell/unas]
@=/”Take Ownership/”
/”HasLUAShield/”=/”/”
/”NoWorkingDirectory/”=/”/”
/”Position/”=/”middle/”
[HKEY_CLASSES_ROOT//*//shell/unas//command]
@=/”cmd.exe /c takeown /f ///”%1///” && icacls ///”%1///” /grant administrators:F /c /l & pause/”
/”IsolatedCommand/”=/”cmd.exe /c takeown /f ///”%1///” && icacls ///”%1///” /grant administrators:F /c /l & pause/”
[-HKEY_CLASSES_ROOT//Directory//shell/unas]
[HKEY_CLASSES_ROOT//Directory//shell/unas]
@=/”Take Ownership/”
/”HasLUAShield/”=/”/”
/”NoWorkingDirectory/”=/”/”
/”Position/”=/”middle/”
[HKEY_CLASSES_ROOT//Directory//shell/unas//command]
@=/”cmd.exe /c takeown /f ///”%1///” /r /d y && icacls ///”%1///” /grant administrators:F /t /c /l /q & pause/”
/”IsolatedCommand/”=/”cmd.exe /c takeown /f ///”%1///” /r /d y && icacls ///”%1///” /grant administrators:F /t /c /l /q & pause/”
[-HKEY_CLASSES_ROOT//dllfile//shell/unas]
[HKEY_CLASSES_ROOT//dllfile//shell/unas]
@=/”Take Ownership/”
/”HasLUAShield/”=/”/”
/”NoWorkingDirectory/”=/”/”
/”Position/”=/”middle/”
[HKEY_CLASSES_ROOT//dllfile//shell/unas//command]
@=/”cmd.exe /c takeown /f ///”%1///” && icacls ///”%1///” /grant administrators:F /c /l & pause/”
/”IsolatedCommand/”=/”cmd.exe /c takeown /f ///”%1///” && icacls ///”%1///” /grant administrators:F /c /l & pause/”
[-HKEY_CLASSES_ROOT//Drive//shell/unas]
[HKEY_CLASSES_ROOT//Drive//shell/unas]
@=/”Take Ownership/”
/”HasLUAShield/”=/”/”
/”NoWorkingDirectory/”=/”/”
/”Position/”=/”middle/”
[HKEY_CLASSES_ROOT//Drive//shell/unas//command]
@=/”cmd.exe /c takeown /f ///”%1///” /r /d y && icacls ///”%1///” /grant administrators:F /t /c /l /q & pause/”
/”IsolatedCommand/”=/”cmd.exe /c takeown /f ///”%1///” /r /d y && icacls ///”%1///” /grant administrators:F /t /c /l /q & pause/”
[-HKEY_CLASSES_ROOT//exefile//shell/unas]
[HKEY_CLASSES_ROOT//exefile//shell/unas]
/”HasLUAShield/”=/”/”
[HKEY_CLASSES_ROOT//exefile//shell/unas//command]
@=/”///”%1///” %*/”
/”IsolatedCommand/”=/”///”%1///” %*/”
Revert Ownership Command:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT//*//shell/unas]
[-HKEY_CLASSES_ROOT//Directory//shell/unas]
[-HKEY_CLASSES_ROOT//dllfile//shell/unas]
[-HKEY_CLASSES_ROOT//Drive//shell/unas]
[-HKEY_CLASSES_ROOT//exefile//shell/unas]
[HKEY_CLASSES_ROOT//exefile//shell/unas]
/”HasLUAShield/”=/”/”
[HKEY_CLASSES_ROOT//exefile//shell/unas//command]
@=/”///”%1///” %*/”
/”IsolatedCommand/”=/”///”%1///” %*/”
Playlist
Windows
Please take the opportunity to connect and share this video with your friends and family if you find it useful.