I’ve had to do this a few times now to get full access to my files back. This has been a sure fire way for me to get my files corrected, because no amount of dicking with the Right Click > Properties > Security crap would work right.
- The first case was when I updated from Windows 8 to Windows 10 – something had gone fucky with the migration with how I went from Insiders to Upgrading my actual partition, such that it actually created a 2nd user named Bob or some crap.
- The second case was when I rebuilt my machine using a non-Microsoft account (intentionally) but all my files on my other drive were owned by the Microsoft account which the machine has completely forgotten about.
- The third case was when my laptop died and I took the drives out and put them in this machine so I could get my data off it.
First thing, click your little Cortana search box and type “cmd” – do not hit enter. Right click it and choose Run As Administrator. Once the prompt comes up…
12 takeown /f FOLDERNAME /r /d yicacls FOLDERNAME /grant USERNAME:F /t /q
So putting this in perspective with actual data…
12 takeown /f "D:\Games" /r /d yicacls "D:\Games" /grant bob:F /t /q
If you were telling yourself “But I have Admin” but were still experiencing permission problems, or if some of your apps were just screwing up and you could not figure out why, chances are they could not access the files. This has corrected it 100% of the time for me.
For me this mostly manifested as Skyrim randomly not loading some of my mods even though everything looked right.