First of all, big thanks to Tweaking. I messed up my permissions and for 2 weeks I've been having all sorts of problems and trying to revert the changes. Nothing worked and I had to bother so many people.
Tweaking solved everything but it just created one problem: Whenever I try to open any .png/.jpeg or any image file, no matter if it's located on C, D or E, it shows me the following error:
Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access them.
Edit: I noticed that Microsoft Store and all Microsoft apps (like Calculator, Xbox Companion etc) also have stopped working.
Can anyone please tell me how to fix this? It's obviously a permission thing that I have to change somewhere!