Main Forum > General Computer Support
EDIT: How to grant Administrator permission for MANY files and folders?
Angelika:
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.
Boggin:
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.
Angelika:
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"
Boggin:
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.
Angelika:
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version