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

Permission error pesists after running the script. #39

Open
a1d4r opened this issue May 5, 2024 · 1 comment
Open

Permission error pesists after running the script. #39

a1d4r opened this issue May 5, 2024 · 1 comment

Comments

@a1d4r
Copy link

a1d4r commented May 5, 2024

Once upon a time I messed up permissions on WindowsApps folder. I managed to fix some of the issues. In particular, Microsoft Work and default Windows Apps work as expected.

My problem is some of the apps don't run even after executing the script. These included Microsoft apps: MicrosoftWindows.CrossDevice, WSL2 as well as 3rd party applications such as TranslucentTB.

Here is the output of the script:

Welcome to the amazing WindowsApps Unfukker! Please sit tight!!

Fixing WindowsApps permissions...
Backup of existing permissions...
Successfully processed 0 files; Failed processing 0 files
Saved to C:\Program Files\WindowsApps_20240505_174640.txt

Fixing WindowsApps subfolders inheritance...
Successfully processed 304 files; Failed processing 0 files

Fixing WindowsApps subfolders permissions...

Fixing AppData Packages permissions, this could take a couple minutes...
Backup of existing permissions...
Successfully processed 0 files; Failed processing 2 files
Saved to C:\Users\Aidar\AppData\Local\Packages_20240505_174653.txt
C:\Users\Aidar\AppData\Local\Packages: The handle is invalid.
C:\Users\Aidar\AppData\Local\Packages\*: Access is denied.
Successfully processed 0 files; Failed processing 2 files
C:\Users\Aidar\AppData\Local\Packages: The handle is invalid.
Successfully processed 0 files; Failed processing 1 files
Fixing ProgramData Packages permissions...
Backup of existing permissions...
Successfully processed 0 files; Failed processing 0 files
Saved to C:\ProgramData\Packages_20240505_174653.txt
Successfully processed 1 files; Failed processing 0 files
Successfully processed 247 files; Failed processing 0 files
Successfully processed 247 files; Failed processing 0 files
Successfully processed 247 files; Failed processing 0 files

Unfukking finished!! (hopefully)

I wonder if these lines indicate some problems with my system:

C:\Users\Aidar\AppData\Local\Packages: The handle is invalid.
C:\Users\Aidar\AppData\Local\Packages\*: Access is denied.
Successfully processed 0 files; Failed processing 2 files
C:\Users\Aidar\AppData\Local\Packages: The handle is invalid.
Successfully processed 0 files; Failed processing 1 files

How can I check what gone wrong? I'm tired of getting these error windows on Windows startup. And I want to use WSL2. I tried to reinstalled it multiple times, but after the first run it gets broken. It is making me mad how Microsoft managed to create such piece of garbage.

I would be very grateful if someone guide me the direction to search. I tried almost everything I could find on the internet but still no success.

error_permission
error_permission_2

@AgentRev
Copy link
Owner

It's hard to say just from those errors. ProcessMonitor would be needed to analyze what paths it's attempting to access. It may also involve the AppRepository folder permissions, which I haven't cracked yet.

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

2 participants