I'm just bored clicking on the CONTINUE button every time "You'll need to provide administrator permission" prompt appears, as I'm the only administrator of the PC. I've configured Notification system to 'Never Notify' from Control Panel -> UAC but still no luck.
I've to face the problem when copying / moving / renaming file on an additional internal disk.
-
Give the require rights to perform the action on the user you are using.– RamhoundApr 23, 2012 at 16:17
-
I had this problem with a locked drive (western digital). It was a bug (the computer went in sleep mode and waked up, the drive looked unlocked, but wasn't). I ejected the drive and unlocked it using the password, then it did not bother me with admin permission.– JinSnowMay 30, 2020 at 15:24
7 Answers
You are not allowed to take ownership of many files like C:\Users
, C:\bootmgr
, C:\hiberfile.sys
, pagefile.sys
, C:\Program Files
, etc., and thereby even the C:\
drive as a whole. Also, setting permissions isn't disabling the admin prompt, it's simply attempting to sidestep the issue instead.
Here is the actual solution: Disabling the prompt
For Windows 7 Ultimate, Business or Enterprise edition which has Local Group Policy, or computer joined to domain and has Active Directory-based GPO, the group policy can be used to disable UAC for local computer or many computer across large networks at once.
- Enter GPedit.msc in Start Search to run Local Group Policy editor. (Or gpmc.msc to run Group Policy Management Console for AD-based domain GPO editor).
Navigate to the following tree branch:
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options
In GPMC, browse to the required GPO which is linked to the domain or OU where the policy wants to apply.
Locate the following policy in the right pane:
User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
Set its value to Elevate without prompt.
Locate the following policy in the right pane:
User Account Control: Detect application installations and prompt for elevation
Set its value to Disabled.
Locate the following policy in the right pane:
User Account Control: Run all administrators in Admin Approval Mode
Set its value to Disabled.
Locate the following policy in the right pane:
User Account Control: Only elevate UIAccess applications that are installed in secure locations
Set its value to Disabled.
Disable UAC with Group Policy
Restart the computer when done.
According to this article there may be some issues with Metro apps, but disabling UAC using regedit worked for me. To do so, start regedit (by typing regedit
in the run command) and navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Change the value of the entry EnableLUA
to 0
. Then restart your machine. Upon doing this, I never get nagged with a dialog to "provide administrator permission" anymore.
-
Does this do anything different than changing the UAC setting normally? Both require administrator privileges.– Ben NJan 24, 2016 at 22:34
I also had to figure it out and I thought I would share the answer:
- Go to windows explorer
- Right mouse the drive in question
- Go to properties
- Select security tab.
- Change permissions to full
I resolved this by adding my domain user account that I login with to the Administrator group. This worked on Windows 10; not sure it will work for Windows 7.
goto command prompt (admin) once the command prompt comes up type: sc config secdrv start= demand (hit enter) then type: sc start secdrv (hit enter) now run your game are whatever you needed permission for.
I just came across this issue when cloning a repo in GitHub Desktop. Cloning to inetpub isn't allowed. Not sure this is relevant for the case in the original question (copying / moving / renaming files) but the solution for me was to right click GitHub Desktop and select "Run as Administrator". This is the case for the hosts file with Notepad++ or Sublime too - can't edit the file without running as administrator first. Hope this helps.
-
Thanks ever so much for the anonymous, description-less downvote, whoever did that! Jul 18, 2021 at 21:38