Dear Judith Roales,
Thank you for reaching out to the Microsoft Q&A.
This "access denied" issue, especially when it ignores recursive permission changes, is a classic (and maddening) symptom of a problem with the drive's ownership.
You are correct, trying to fix this file-by-file is impossible. The problem isn't at the file level; it's at the top level of the drive. The solution is to use your administrator status to seize ownership of the entire drive and all its contents in one go.
You could try following these steps below to solve this issue:
- Open advanced security settings for drive Y:
- Open File Explorer.
- Right-click on your problematic external drive (Y:) and select Properties.
- Go to the Security tab.
- Click the Advanced button.
- Change the drive's owner:
- In the "Advanced Security Settings" window, look at the top where it says Owner:. It likely shows "Unable to display current owner" or an unknown account.
- Click the blue Change link next to the owner's name.
- A "Select User or Group" box will pop up.
- In the text box, type
Administrators(make sure to include the "s" at the end). - Click the Check Names button. It should find the group and underline it (e.g.,
YOUR-PC-NAME\Administrators). - Click OK.
- Replace ownership on all files and folders:
- You are now back in the "Advanced Security Settings" window. The owner should show "Administrators".
- Check the box that says "Replace owner on subcontainers and objects". This is the key. This tells Windows to apply this ownership change to every single one of your 100k files and folders.
- Click Apply.
- Grant full control permissions:
- After the ownership process is complete, while still in the "Advanced Security Settings" window, click the Add button (near the bottom left).
- Click the blue link "Select a principal".
- In the box, type your Windows username (the one you use to log in).
- Click Check Names to verify, then click OK.
- In the "Basic permissions" section, check the box for "Full control". This will automatically check all other boxes.
- Click OK.
- Replace all permissions:
- You are now back in the main "Advanced Security Settings" window and should see your username in the list with "Full control".
- At the very bottom, check the box that says "Replace all child object permission entries with inheritable permission entries from this object".
- Click Apply, and then OK.
Please understand that our initial reply may not always immediately resolve the issue. However, with your help and more detailed information, we can work together to find a solution. Thank you for your cooperation.
To assist others who might have similar questions and to help us improve our support system, we kindly encourage you to "Accept the answer" if it successfully addressed your concern. Accepting an answer lets other users know that this solution worked for you, and it also helps us track the effectiveness of our support efforts.