DEV Community

Cover image for How to Fix 'File Access Denied' Issue on Windows
junian
junian

Posted on • Originally published at junian.net on

How to Fix 'File Access Denied' Issue on Windows

Have you ever tried to delete or move a file in Windows File Explorer, only to encounter an error message like this?

File Access Denied

You need permission to perform this action.

You require permission from PC-NAME\username to make changes to this file.

Windows File Explorer File Access Denied

You're not alone, and here's how to resolve it:

  1. Right-click the file and select Properties.
  2. Navigate to the Security tab and click the Advanced button.
  3. Click the Change button next to the Owner field.
  4. Enter your username, click Check Names to verify it, then click OK.
  5. In the Permissions tab, click Add to assign full control permission.
  6. Click Select a principal; a new dialog box will appear.
  7. Enter your username again, click Check Names to verify, then click OK.
  8. Back in the Permission Entry dialog, check the Full control permission.
  9. Click OK on all dialogs to apply the changes.

Once you complete these steps, you should be able to modify, delete, or move the file.

Here's a video to help visualize the process:

Thanks for reading. I hope you found this helpful. See you next time!

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay