Thank you for posting your question in the Microsoft Q&A forum
Regarding your issue, this happens when Windows 11 can see your account as an Administrator but can no longer grant administrative elevation, so Windows blocks admin tasks and returns Access denied even though you’re the only admin on the PC.
Here are a few steps you can try:
- Fix your Main Account Permissions
- Press Win + R, type netplwiz, and hit Enter.
- Select your regular username and click Properties.
- Go to the Group Membership tab.
-
- Ensure Administrator is selected. Even if it already is, switch it to "Standard," hit Apply, then switch it back to Administrator and hit Apply again to "force" the setting.
- Reset UAC (User Account Control)
- Click Start and type UAC.
- Move the slider down and then back up to the second from the top (the default). This often restarts the service properly.
-
- Check for "File System" Locks
- Right-click your C: Drive > Properties > Security
- Select “Edit“.
- Select the user account and check the “Full Control” box in the Allow column under the Permissions for User section.
-
- Click “Apply” and then “OK“.
- Repair system file
- Press the Windows Key, type cmd.
- Right-click "Command Prompt" and select Run as Administrator.
- Type the following command and press Enter: DISM /Online /Cleanup-Image /RestoreHealth && sfc /scannow
- Wait: It will take a few minutes.
Hopefully it will help work with your issue and if you have any other questions or need further assistance, feel free to ask.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.