AgentRev / WindowsAppsUnfukker

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

Error code #42

Open Zorusaki opened 1 month ago

Zorusaki commented 1 month ago

Like many others i tweaked with the permissions on the windowsapp folder (thanks to all those websites who said it wouldn't amount to much) and i'm trying to fix most of my apps not opening anymore by running your script Not sure if you still answer to issues but this is the error message that i got after running the command and i haven't seen it anywhere else PAExec v1.29 - Execute Programs Remotely Copyright (c) 2012-2021 Power Admin LLC www.poweradmin.com/PAExec

Connecting to {local server}... Failed to impersonate [] - continuing anyway. The handle is invalid. [Err=0x6, 6] Failed to copy [C:\Program Files\PA Server Monitor\PAExec.exe] to [C:\WINDOWS\PAExec-21688-LAPTOP-MP14BU94.exe] -- going to try to continue anyway. Access is denied. [Err=0x5, 5] Starting PAExec service on {local server}... Failed to connect to Service Control Manager on {local computer}. Access is denied. [Err=0x5, 5] Failed to install service on {local computer} The handle is invalid. [Err=0x6, 6]

PAExec returning exit code -6

AgentRev commented 1 month ago

Hmm maybe try with PsExec? https://learn.microsoft.com/en-us/sysinternals/downloads/psexec

Zorusaki commented 1 month ago

I had an error message when i tried to do it with PsExec, not really sure why but in the end even with the error it did fix it! Microsoft store and all my apps are opening again. Thank you for your help!