How to reset all permissions to default?


Honorable Member
I couldn't find this anywhere and I really need help about this.

Long story short, I thought RESTRICTED PACKAGES, ALL PACKAGES and TrustedInstaller were viruses so I removed their permissions from wherever I could but it turned out to be Windows 10's feature and the permissions are now messed up, even after a FACTORY RESET. Microsoft apps doesn't work, and the system doesn't feel solid.

I really want to reset every single permission back to default as it was before. Can somebody help?