How to take ownership?

Simonmonster

Honorable
Jul 6, 2012
72
0
10,640
Hello again,
So i just upgraded to windows 10, and i'm admin over the pc, but i'm not a owner so i get error messages like " You need permission to perform this action.
You require permission from DESKTOP-T63JU73/SimonK to make changes to this file"
Really glad if you could help me out here.
Thanks in advance.
 
Solution
Too complicated and slow.
Open text editor, copy this to it:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

and save as .reg file. You can import...
Right click on the root drive eg: H: you wish to take ownership of.

Click properties.
And then the security tab in the new window.
You can then add your name or user name for ownership of the drive.
It may take some time because it has to set up permissions for each folder, sub folder and files contained of them.

But once done you will have permission to read, write, edit, modify or delete files at will .

Simon.
 
Too complicated and slow.
Open text editor, copy this to it:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

and save as .reg file. You can import changes to registry with it.
 
Solution

TRENDING THREADS