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

0 Members and 1 Guest are viewing this topic.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • 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: 10182
  • Location: UK
  • Karma: 122
    • 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

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • 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: 10182
  • Location: UK
  • Karma: 122
    • 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

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • 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 »

Offline Boggin

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

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #31 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.

Offline Boggin

  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Jul 2014
  • Posts: 10182
  • Location: UK
  • Karma: 122
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #32 on: November 27, 2017, 02:43:11 pm »
Create a system image onto external media as fall back and give it a try.

Offline Willy2

  • Hero Member
  • *****
  • Join Date: Oct 2011
  • Posts: 1165
  • Karma: 18
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #33 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.

Offline Willy2

  • Hero Member
  • *****
  • Join Date: Oct 2011
  • Posts: 1165
  • Karma: 18
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #34 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.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
Re: EDIT: How to grant Administrator permission for MANY files and folders?
« Reply #35 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.