Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script didn't fully work #1

Open
Shadowblazer93 opened this issue Nov 16, 2021 · 5 comments
Open

Script didn't fully work #1

Shadowblazer93 opened this issue Nov 16, 2021 · 5 comments

Comments

@Shadowblazer93
Copy link

I messed up my WindowsApps folder and came across this repository while researching on how to fix the folder.
The script was successful in resetting the permissions of the folder.
Unfortunately, it didn't fix the "File cannot be accessed" error

BUT, I did manage to find a fix on some obscure microsoft post
What fixed it for me is enabling the "Replace all child objects permissions..." at the bottom of the advanced security tab
in the Appdata folder C:\Users\Username\Appdata
After doing that all the errors went away.
image

(P.S. tysm for making this script it really helped me out 🙂)

@ryanyoung7259
Copy link

I also thought it was a good idea to...

  • Mess around with the permissions of the WindowsApps folder, subfolders, and files
  • Disable the inheritance on the entire WindowsApps folder tree

The script worked perfectly for me! All I had to do was to set $DeepFixInheritance to 1:

$DeepFixInheritance = 0 # set to 1 if you disabled inheritance on the entire folder tree like dumbass me

Additional information about my particular setup...
Edition: Windows 10 Pro
Version: 21H1
OS build: 19043.1348
Experience: Windows Feature Experience Pack 120.2212.3920.0

Thank you very much for writing this script!

@AgentRev
Copy link
Owner

Thank you both for your feedback, I made some tweaks to make those easier. ad1848c

@ryanyoung7259
Copy link

I appreciate your hard work! One additional thing to add might be a boolean at the top of the script to turn on/off the AppData folder functionality.

Other than that, the script looks great! Thank you again!

@dogenzenji8
Copy link

dogenzenji8 commented Feb 2, 2023

I messed up my WindowsApps folder and came across this repository while researching on how to fix the folder. The script was successful in resetting the permissions of the folder. Unfortunately, it didn't fix the "File cannot be accessed" error

BUT, I did manage to find a fix on some obscure microsoft post What fixed it for me is enabling the "Replace all child objects permissions..." at the bottom of the advanced security tab in the Appdata folder C:\Users\Username\Appdata After doing that all the errors went away. image

(P.S. tysm for making this script it really helped me out 🙂)

I have been searching the ends of the internet trying to solve the access issues with several UWP apps and this is what finally fixed it. Thank you so much @Shadowblazer93 for helping me avoid the pain of a reinstall or moving to a new user profile!

@Shadowblazer93
Copy link
Author

I messed up my WindowsApps folder and came across this repository while researching on how to fix the folder. The script was successful in resetting the permissions of the folder. Unfortunately, it didn't fix the "File cannot be accessed" error
BUT, I did manage to find a fix on some obscure microsoft post What fixed it for me is enabling the "Replace all child objects permissions..." at the bottom of the advanced security tab in the Appdata folder C:\Users\Username\Appdata After doing that all the errors went away. image
(P.S. tysm for making this script it really helped me out 🙂)

I have been searching the ends of the internet trying to solve the access issues with several UWP app and this is what finally fixed it. Thank you so much @Shadowblazer93 for helping me avoid the pain of a reinstall or moving to a new user profile!

Wow, I never expected such an obscure post would ever help someone!
I'm glad that you got it all fixed, I know the feeling when everything finally starts working again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants