Tweaking.com Support Forums

Main Forum => General Computer Support => Topic started by: Angelika on March 22, 2021, 02:35:07 AM

Title: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 22, 2021, 02:35:07 AM
To delete a file, you must provide administrator rights. And so it is with every image file in a folder. I want to delete some files, but I have to confirm the operation every time. Do you have ideas for adding UAC permissions (very high level)?
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 22, 2021, 02:46:55 AM
This is how to turn off UAC but as the article states, it isn't advisable -

https://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 22, 2021, 07:17:21 AM
https://www.howtogeek.com/howto/windows-vista/ <===Normal USER, not UAC isue!!!!

Not Vista!!! Windows 7

This is wrong solution, it will damage the permissions of tens of thousands of things all over your computer!
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 22, 2021, 08:53:50 AM
At the beginning of the article it says that it applies to Win 7, 8 and 10 - Read the article properly !
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 22, 2021, 07:50:24 PM
But I do not want to disable UAC, just give permission to delete files, only some folders have this problem.
This is especially true if you reinstall System and lose permissions for old folders.

It is Administrator Account number 2

By default it only sets permissions for the built-in administrator, but if someone has two accounts (or more Administrator accounts) then there is a permission problem.
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 23, 2021, 04:15:33 AM
If you scroll down to the bottom of this article you can use the hack to add Take Ownership to your right click context menu which may help.

I have this on my Win 7 and Win 10 laptops.

I can't remember if you still get the UAC to confirm the deletion, but you can take ownership of any file by right clicking on it and selecting that option.

https://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 24, 2021, 03:19:45 AM
This is permissions without UAC enabled. ==> https://www.howtogeek.com/wp-content/uploads/2017/03/wto_top-650x299.png
Must be with this icon (works with UAC enabled)
The registry (regedit) entry must be completely different!

(https://i.postimg.cc/fy6tMFKK/Screen-Shot-03-24-21-at-11-17-AM.jpg)
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 24, 2021, 03:33:10 AM
I don't bother with registry changes when there is a hack that will do it for me.


Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 24, 2021, 03:43:59 AM
But it doesn't work on the Polish System, I already talked about it. User and group names are English and Polish are different!
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 24, 2021, 03:46:17 AM
Have you tried Googling for a Polish version ?
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 24, 2021, 03:50:35 AM
I searched Polish forums and found nothing about it.
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 24, 2021, 03:51:27 AM
Then I can't help you.
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 24, 2021, 07:19:21 AM
Solved. I got help on another forum

(https://i.postimg.cc/3RQX24jF/Screen-Shot-03-24-21-at-03-16-PM.jpg)
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 24, 2021, 10:41:04 AM
I don't understand Polish but glad you got it resolved, but I thought you used a Win 7 machine whereas that mentions Win 10.
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 24, 2021, 01:00:15 PM
Because I'm using Windows 7, but the Context Menu has built-in functions for different versions of the system.
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Angelika on March 24, 2021, 11:40:21 PM
Registry files to add  the Take Ownership context menu to files and folders in Windows 10. May be useful in the future on a new OS.
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\TakeOwnership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
"NeverDefault"=""

[HKEY_CLASSES_ROOT\*\shell\TakeOwnership\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""
"IsolatedCommand"= "powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l & pause' -Verb runAs\""


[HKEY_CLASSES_ROOT\Directory\shell\TakeOwnership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
"NeverDefault"=""

[HKEY_CLASSES_ROOT\Directory\shell\TakeOwnership\command]
@="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q & pause' -Verb runAs\""
"IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q & pause' -Verb runAs\""
Title: Re: How to dele file No confirmation click (UAC)?
Post by: Boggin on March 25, 2021, 03:34:48 AM
There is already a hack for Win 10 - https://www.tenforums.com/tutorials/3841-add-take-ownership-context-menu-windows-10-a.html