Often when people are getting these errors, it's either the 2 folders you're fixing, or the permissions on
C:\ProgramData\Microsoft\Windows\AppRepository
Can you please adjust your script to also include fixing that folder as well if it's screwed?
There is TOO MUCH bad advice online regarding changing the permissions on that folder, like adding the user to the permissions and taking ownership. All of those things completely bones the store apps.
Often when people are getting these errors, it's either the 2 folders you're fixing, or the permissions on
C:\ProgramData\Microsoft\Windows\AppRepository
Can you please adjust your script to also include fixing that folder as well if it's screwed?
There is TOO MUCH bad advice online regarding changing the permissions on that folder, like adding the user to the permissions and taking ownership. All of those things completely bones the store apps.