Tweaking.com Forums

Main Forum => Computer Help => Topic started by: Angelika on November 20, 2017, 07:34:49 AM

Title: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Angelika on November 20, 2017, 07:34:49 AM
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?
Title: Re: Take Ownership not work!
Post by: Boggin on November 20, 2017, 08:02:12 AM
Which version of Windows are you using ?
Title: Re: Take Ownership not work!
Post by: Angelika on November 20, 2017, 09:00:29 AM
W7
Title: Re: Take Ownership not work!
Post by: Boggin on November 20, 2017, 09:05:30 AM
Are you trying to take ownership of a file or a registry key ?
Title: Re: Take Ownership not work!
Post by: Boggin 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/
Title: Re: Take Ownership not work!
Post by: Angelika 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...
Title: Re: Take Ownership not work!
Post by: Boggin 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 ?
Title: Re: Take Ownership not work!
Post by: Angelika 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?
Title: Re: Take Ownership not work!
Post by: Boggin 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.
Title: Re: Take Ownership not work!
Post by: Angelika 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)
Title: Re: Take Ownership not work!
Post by: Boggin on November 21, 2017, 07:19:39 AM
Then that account must be corrupt - create another admin one.
Title: Re: Take Ownership not work!
Post by: Angelika 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.
Title: Re: Take Ownership not work!
Post by: Boggin 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.
Title: Re: Take Ownership not work!
Post by: Angelika 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.
Title: Re: Take Ownership not work!
Post by: Boggin 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 ?
Title: Administrator permission (Non-System Data) - issue
Post by: Angelika 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.
Title: Re: Take Ownership not work!
Post by: Boggin 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.
Title: Re: Take Ownership not work!
Post by: Angelika on November 23, 2017, 07:08:02 AM
I plug in a new drive and I have to confirm every operation.
Title: Re: Take Ownership not work!
Post by: Boggin 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 ?
Title: Re: Take Ownership not work!
Post by: Angelika 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?
Title: Re: Take Ownership not work!
Post by: Boggin on November 23, 2017, 01:07:03 PM
You still haven't said what you are trying to do.
Title: Admninistrator permision - issue (Non System Data)
Post by: Angelika 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:
(https://s8.postimg.org/ojew2oq8l/Screen_Shot_11-27-17_at_11.38_AM.jpg)
Title: Re: Take Ownership not work!
Post by: Boggin on November 27, 2017, 02:48:14 AM
Is the file in use - try the deletion in Safe Mode.
Title: Re: Take Ownership not work!
Post by: Angelika 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.)
Title: Re: Take Ownership not work!
Post by: Boggin 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.
Title: Re: Take Ownership not work!
Post by: Angelika on November 27, 2017, 03:37:56 AM
You misunderstood me.
I can without any problem remove EVERY file in Normal Mode !!!
Example: G:\Cuba\Lady Gaga.mp3
But I have to confirm each action [CONTINUE]

Could use a script that solves all these problems.
I do not remember what site it was, but I know it's possible.

EDIT: Owner is correct SETTING, Permission is bad.

Title: Re: Take Ownership not work!
Post by: Boggin on November 27, 2017, 03:43:25 AM
The UAC is there to protect you - I wouldn't try to bypass it.

BTW - You shouldn't leave the hidden admin account enabled all of the time should you become infected.
Title: Re: Take Ownership not work!
Post by: Angelika on November 27, 2017, 03:54:23 AM
NOT WORK FOR ME:
I still have errors.

---------------------------
Windows Security
---------------------------
" STOPPING THE PROPAGATION OF PERMISSION SETTING LEADS TO AN INCONSISTENT STATE, IN WHICH SOME OBJECTS HAVE THE SETTINGS BUT OTHERS DON'T. IF YOU MADE THE CHANGE BY MISTAKE YOU SHOULD APPLY THE CORRECT CHANGE IMMEDIATELY TI ACHIEVE A CONSISTENT STATE "

Take Ownership I work, but I have to millions of times confirm each action for a million files. OMG !!!



Please correct script. For millions of files or folders, podfolders. Auto Action.


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"


Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Boggin on November 27, 2017, 07:57:52 AM
Those cmds do exactly the same as that registry hack file.

You will still get the Continue prompt - that's Windows wanting a confirmation but you normally only get that for system folders/files.

Just what are these "millions" of files and what are you trying to do with them ?

You can clean out a lot, even obsolete Windows Updates from the WinSxS folder by running Disk Cleanup as an admin.

Go start - type disk cleanup then right click on Disk Cleanup and select Run as administrator.

This will default do it for C: but this article will  show you how to clean up another drive.

https://www.howtogeek.com/125923/7-ways-to-free-up-hard-disk-space-on-windows/

If you are wanting to remove other files which are leftovers from old programs and you are using a branded (OEM) computer, then I would back up what you want to save then perform a factory reset which will get rid of all of the dross, but you will then have get rid of the bloat that comes with a machine out of the box and reinstall Windows Updates as well as reinstalling any 3rd party programs and putting your personal stuff back on.

I use the free version of IObit Uninstaller to get rid of the bloat as well as a normal uninstall as it cleans out the residue that Windows Uninstall usually leaves.

I would then follow that with a defrag as I use a HDD and not a SSD.

Unless you tell me what you are trying to do then I can only guess as to the advice I can give, but Windows is usually the ultimate boss and you have to abide by the way it works to protect itself and you.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Angelika on November 27, 2017, 09:18:51 AM
But I'm not talking about system files and I'm not talking about the system. please understand it!

I am talking about user files such as text files, music, videos, pictures.
I repeat, I'm not talking about any system files!

Take Owner - I can only do this for one file or for multiple files, but I have to do it one by one and confirm with the Administrator permission.

I want regular use of each file:
COPY
DELETE


But for each such operation I have to confirm each action.

If you still do not know then I will have to look for a solution on another forum or on the Microsoft site. And I know that there are such solutions, but each user has an individual case.
So if I do something wrong, then I can lose data or access the files.
You are not a professional, so you probably do not know how to do this on many files and folders.

I can also do it manually, but I have to click on each file and folder and subfolder and select from the Take Ownership menu, but it will take me 30 days!
You can not do this automatically.
Where is the function? Do not ask again, apply for each item (file, folder). <=== This option is probably in Windows 10.
There are no options in Windows 7.
So you need to find a workaround.

My friend claims to exist, but does not want to write scripts, no time.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Boggin on November 27, 2017, 01:22:01 PM
A few years ago I did a block copy of quite a few photo files from a son's laptop onto an external HDD and then a block delete to the Recycle bin which I then emptied after confirming they were on the ext. HDD.

I did not have to take ownership of them but I can't remember if I had to click on Continue to complete either operation.

If you want, I can ask one of the admins to see if they can help but you are free to go to any forum you wish.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Angelika on November 27, 2017, 02:33:20 PM
There is a solution on another forum, but there is a warning from user.
Quote
All the following changes are obviously at your own risk.
It may be a good solution, but there is no certainty.
Therefore, I avoid this type of solution that can lose the data, even one important file.
Without 100% data security guarantee, no further steps are taken.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Boggin on November 27, 2017, 02:43:11 PM
Create a system image onto external media as fall back and give it a try.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Willy2 on November 27, 2017, 04:17:50 PM
- In a subfolder in which Windows Repair is installed there's a program called "ManageACl.exe". With that program you can set the permissions for files & folders. Ask Shane for all the options that are available for that program. It has been written specifically for Tweaking's Windows repair to manage/set permissions for Windows.
- I think Shane should make it more accessible for advanced users and make a GUI for the program. But I know he's Always very busy.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Willy2 on November 28, 2017, 04:45:03 AM
- Shane wrote it because the previous program he was using for Windows Repair was more than "a bit  buggy". I DO know it can be run from the commandline with A LOT OF options. (No, I won't provide more info). But don't ask me all the specifics of the program. That's something Shane knows.
Title: Re: EDIT: How to grant Administrator permission for MANY files and folders?
Post by: Angelika on November 28, 2017, 05:17:50 AM
Willy2

This old option really does not ever fix anything.
When done, everything is without change. These tools do not do anything.

(https://s8.postimg.org/b7df4ltfp/Screen_Shot_11-28-17_at_02.16_PM.jpg)