I’ve come across this issue many times before and don’t really have an easy way to resolve.
System has two hard disks – a C drive and a D drive. D has all the data, C is the OS and page. C drive goes bad, so it is replaced, OS is reinstalled clean (Windows 10 Enterprise) After taking ownership of the D drive and everything below it, there are still lots of folders that won’t open or allow reads or writes. Even though effective permissions says I have full access to folders – I receive permission denied errors and can’t seem to figure out how to get the access back. Permissions on D are for previous OS – so there are a lot of GUID users in there with no user names. Is there an easy script I can run (cmd or bat) that will delete all the permissions on the D drive and reset the ownership of every object? The GUI doesn’t seem to work properly. Any help would be greatly appreciated!