It’s always frustrating when Windows tells you don’t have permission to access something on your own computer. Sometimes, when you attempt to access a folder, Windows locks you out with an Access Denied error.

If you’re not an administrator on your computer, you’ll see these errors. But what if you have admin rights and still see such permission denied errors? Here’s how you can fix them on Windows 10.

Open up a File Explorer window and browse to the folder you need to access. Right-click on it and choose Properties. In the resulting window, change to the Security tab and click the Advanced button at the bottom. Here, you’ll see some text that says Owner: and probably Unable to display current owner next to it. Click the Change link to the right of this to change the item’s owner.

Now, you’ll need to select which people or groups can access the resource. In the Enter the object name to select box, type Administrators to allow all PC admins to access it. Click Check Names and the box text will auto-correct to PCNAME\Administrators; click Ok to accept this.

In final step, back on the Advanced Settings window, check the box for Replace owner on subcontainers and objects below the Owner field. This ensures you can access everything inside that folder without having to repeat these steps. Click OK and you’re all set to access the folder.