AgentRev / WindowsAppsUnfukker

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

powershell exited with error code -196608. #15

Closed Tarentaise closed 1 year ago

Tarentaise commented 1 year ago

When running it doesn't work, I get this.

psexec.exe -s -i powershell -ExecutionPolicy Bypass -File "WindowsAppsUnfukker.ps1"

PsExec v2.4 - Execute processes remotely
Copyright (C) 2001-2022 Mark Russinovich
Sysinternals - www.sysinternals.com

powershell exited on _Hostname_ with error code -196608.
AgentRev commented 1 year ago

You have to specify the full absolute path, e.g. "C:\Users\Tarentaise\Downloads\WindowsAppsUnfukker.ps1"

If that still doesn't work, try PAExec instead of PsExec

Tarentaise commented 1 year ago

PAExec worked however the permissions are still broken. Fuck.

AgentRev commented 1 year ago

The perms from "C:\Program Files\WindowsApps", or elsewhere?

Tarentaise commented 1 year ago

WindowsApps, I cannot launch WindowsApps programs still. Which sucks as I cannot access Nvidia control panel.

AgentRev commented 1 year ago

With hidden files enabled, if you right-click WindowsApps, open Properties, and go to Security, is the SYSTEM user listed? If yes, does it have Full control?

Tarentaise commented 1 year ago

Reinstalling windows fixed my issue, sorry your script didn't help me though.