Author Topic: EDIT: How to grant Administrator permission for MANY files and folders?  (Read 23640 times)

0 Members and 1 Guest are viewing this topic.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Take Ownership not work:
---------------------------
Error
---------------------------
Internal Error 00000014
---------------------------
OK   
---------------------------




Code: [Select]
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"

My System is Polish

Administrators (Administratorzy)

does not it make a difference?
« Last Edit: November 27, 2017, 04:43:17 am by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #1 on: November 20, 2017, 08:02:12 am »
Which version of Windows are you using ?

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #2 on: November 20, 2017, 09:00:29 am »
W7

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #3 on: November 20, 2017, 09:05:30 am »
Are you trying to take ownership of a file or a registry key ?

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #4 on: November 20, 2017, 09:15:45 am »
I'm going to have to go so I'll give you two links.

The first is for files and folders which if you scroll down you can download the hack which will put Take Ownership into the right click context menu and the second is for taking ownership of registry keys.

https://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/

https://appuals.com/taking-ownership-of-registry-keys-in-windows/

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #5 on: November 20, 2017, 09:35:04 am »
Vista ?
take-ownership-to-explorer-right-click-menu-in-vista/

I've seen this site a long time ago, I downloaded the files but it does not work.


Code: [Select]
You'll need to provide administrator permission to delete this folder...
« Last Edit: November 20, 2017, 09:43:38 am by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #6 on: November 20, 2017, 01:13:09 pm »
I have that on two Win 7 laptops upgraded to Win 10 and it works for me.

If the hack didn't work for you, did you try creating it manually from the steps in the article ?

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #7 on: November 21, 2017, 02:49:42 am »
I have UAC turned on and I do not want to turn off (Protect!)
I do not want to confirm each time as administrator when I want to delete any file or folder. Maybe it's related to something else?

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #8 on: November 21, 2017, 03:44:15 am »
The UAC is there to protect you.

I've just realised I didn't have this hack installed on my Win 7 laptop, so have downloaded and saved it.

When you say it didn't work for you, have you installed it correctly.

Locate the .zip in your Downloads folder, double click on it - Extract then right click on the add to context menu and select Merge then confirm.

I don't have anything I want to move or delete just yet so am unable to confirm if I would still get the UAC.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #9 on: November 21, 2017, 05:26:17 am »
It does not work, I used the best method from the internet, but it still does not work, it does not work anymore!
Where is the log or debug log?
It always does not work when I have a new drive and it copies new data on it!
I have had enough of this for many years, always the same problem, and it's always when new disk and data is copied.
The problem is always when I have an admin account (but the second account).

1 account (Administrator)
2 account (bla bla bla Adminstrator) Problem
3 Administartors (Administratorzy)
« Last Edit: November 21, 2017, 05:30:50 am by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #10 on: November 21, 2017, 07:19:39 am »
Then that account must be corrupt - create another admin one.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #11 on: November 22, 2017, 05:42:35 am »
Nonsense! How can you write such stupid things?
I have a new system and a new account and still this damn error!
I can change the system and so a foolish mistake to be, so your ideas are stupid.
I'm just a man and everyone makes a mistake. If I offended you - I'm sorry. My English is not very good.
« Last Edit: November 22, 2017, 05:53:44 am by Boggin »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #12 on: November 22, 2017, 05:59:33 am »
I don't know what that rant is about but if it works on one admin account but not another, then there must be something wrong with that account and accounts can be become corrupt regardless of how new they are - although I don't have an explanation for that.

Delete that account and create a new admin one to see if it still fails - how is that stupid ?

BTW - I've edited your last post to remove the profanity.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #13 on: November 22, 2017, 06:29:48 am »
I changed profile and account and nothing helped!!!!!!!!!!!!!!!!!!!!!!!!! :angry:
I'm sure you do not know how to fix my problem. You will continue to invent senseless solving my problem.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #14 on: November 22, 2017, 06:46:02 am »
You are correct in that I don't know why it should work in one admin account but not another, but until you told me that you had created another and it still failed in that, then that was the only advice I could give.

A simple solution would be to just use this in an account where it does work.

BTW - Why do you have more than one admin account - is the machine shared with someone else ?

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Administrator permission (Non-System Data) - issue
« Reply #15 on: November 22, 2017, 07:27:25 am »
Dlaczego u diabła zmienić własne konto?
Chcę po prostu podłączyć nowy dysk z nowymi danymi. Po prostu nie chcę ręcznie zatwierdzać uprawnień administratora.

Why the hell to change their own account?
I just want to connect a new disk with new data. I just don't want to manually approve admin permission.
« Last Edit: November 27, 2017, 02:44:23 am by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #16 on: November 22, 2017, 01:23:22 pm »
What exactly are you trying to do ?

You only need to take ownership of a file when it is a system file and you will always get that error that you require permission from the administrator.

In this case the admin is the Trusted Installer.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #17 on: November 23, 2017, 07:08:02 am »
I plug in a new drive and I have to confirm every operation.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #18 on: November 23, 2017, 07:28:16 am »
In Windows it is normal to get an UAC when opening programs unless it has a SkipUAC in Scheduled Tasks or downloading anything - what else are you doing ?

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #19 on: November 23, 2017, 09:12:53 am »
I have UAC enabled. But when the new disk connection needs to confirm each operation. How to avoid it?

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #20 on: November 23, 2017, 01:07:03 pm »
You still haven't said what you are trying to do.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Admninistrator permision - issue (Non System Data)
« Reply #21 on: November 27, 2017, 02:43:29 am »
Boggin - Information window: "You'll need to provide administrator permission to delete this folder of files". (Non-System Data)

UAC does not matter. Since I have a second drive, that's fine, and UAC does not affect deletion.
I have bad settings in:
Security -> Group or User Names or Advanced -> Permission or Inspection Or Owner or Active Privileges.


My account:

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #22 on: November 27, 2017, 02:48:14 am »
Is the file in use - try the deletion in Safe Mode.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: Take Ownership not work!
« Reply #23 on: November 27, 2017, 03:26:15 am »
You still suggest me a bad solution.
No, because they are user files such as graphics, music.
It is not required Safe Mode!
This should work in Normal Mode! For a thousand or a million files.
I want in Normal Mode to have a preview of each folder and file and modify, delete or move it. Work with every file every day.
There are solutions on the internet, but I do not understand them. I need a step-by-step.
Inherited Permissions (All Folders etc.)
« Last Edit: November 27, 2017, 03:30:33 am by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: Take Ownership not work!
« Reply #24 on: November 27, 2017, 03:30:58 am »
It is not necessarily a bad solution because you can't delete a file that is in use and the workaround is to try the deletion in Safe Mode.

Have you tried that yet ?

EDIT - The link I've provided is a step by step in how to take ownership of a folder/file.
« Last Edit: November 27, 2017, 03:35:36 am by Boggin »