AgentRev / WindowsAppsUnfukker

PowerShell script to fix WindowsApps-related permission errors and crashes.
The Unlicense
356 stars 20 forks source link

Script didn't fully work #1

Open Shadowblazer93 opened 2 years ago

Shadowblazer93 commented 2 years ago

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 commented 2 years ago

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

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!

AgentRev commented 2 years ago

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

ryanyoung7259 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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