WindowsAppsUnfukker icon indicating copy to clipboard operation
WindowsAppsUnfukker copied to clipboard

Script didn't fully work

Open Shadowblazer93 opened this issue 4 years ago • 5 comments

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 🙂)

Shadowblazer93 avatar Nov 16 '21 17:11 Shadowblazer93

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: https://github.com/AgentRev/WindowsAppsUnfukker/blob/73ac6ed3fc2e0f84449e7c5183348bb636638f2e/WindowsAppsUnfukker.ps1#L22

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!

ryanyoung7259 avatar Nov 19 '21 14:11 ryanyoung7259

Thank you both for your feedback, I made some tweaks to make those easier. https://github.com/AgentRev/WindowsAppsUnfukker/commit/ad1848c7f4b20ba88fdd53c0a8e7a85b0dfb1102

AgentRev avatar Nov 22 '21 00:11 AgentRev

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!

ryanyoung7259 avatar Nov 22 '21 01:11 ryanyoung7259

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!

dogenzenji8 avatar Feb 02 '23 20:02 dogenzenji8

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 :)

Shadowblazer93 avatar Feb 04 '23 05:02 Shadowblazer93