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

0 Members and 1 Guest are viewing this topic.

Offline Angelika

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • 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: 7565
  • Location: UK
  • Karma: 109
    • 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

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • 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: 7565
  • Location: UK
  • Karma: 109
    • 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

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • 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: 7565
  • Location: UK
  • Karma: 109
    • 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

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • 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: 7565
  • Location: UK
  • Karma: 109
    • 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

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • 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: 7565
  • Location: UK
  • Karma: 109
    • 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 »

Offline Angelika

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • View Profile
Re: Take Ownership not work!
« Reply #25 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.

« Last Edit: November 27, 2017, 03:42:10 AM by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 7565
  • Location: UK
  • Karma: 109
    • View Profile
Re: Take Ownership not work!
« Reply #26 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.

Offline Angelika

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • View Profile
Re: Take Ownership not work!
« Reply #27 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"


« Last Edit: November 27, 2017, 05:29:31 AM by Angelika »

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 7565
  • Location: UK
  • Karma: 109
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #28 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.

Offline Angelika

  • Full Member
  • ***
  • Join Date: Feb 2017
  • Posts: 201
  • Karma: 0
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #29 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.
« Last Edit: November 27, 2017, 09:30:06 AM by Angelika »

 

anything