The problem is that the User Access Control that has been part of every MS Windows since Vista (pardon my french) was a ham-fisted effort to give Windows the same sort of file-level access control UNIX/Linux has had since forever, but they botched it horribly and with each new release of Windows it only gets worse.
The account you’re logged in as HAS TO HAVE Administrator privileges to do this.
1. Disable User Access Control
https://www.minitool.com/news/how-to-disable-uac-windows-10-004.html
That will get most of them but Windows’ “User Access Control” is such an abomination that you might still have an occasional trouble spot. You can fix them by taking ownership of the directory the files are in.
2. Go to the website below:
https://www.tenforums.com/tutorials/3841-add-take-ownership-context-menu-windows-10-a.html
Download the file “Add_Take_Ownership_to_context_menu.reg”
Right-click on the *.reg file and choose “add to registry.” When it asks if you’re sure, click yes. It will tell you the new key has been added.
Once that’s installed, you can right-click on any directory and choose “Take ownership.” You user account will then “own” that directory. Do the same to the individual files within that directory if necessary.
BTTT!!!
That is what I was going to recommend, but in W/11 it does not work as it used to for me.
But I see this:
Windows 10 "Access Denied" Folder Errors: 5 Easy Fixes BY BEN STEGNER UPDATED APR 15, 2022