LeDragoX / Win-Debloat-Tools

Re-imagining Windows like a minimal OS install, already debloated with minimal impact for most functionality.
MIT License
4.82k stars 245 forks source link

registry key gamebar presencewriter permission issue #135

Open Adrigorithm opened 8 months ago

Adrigorithm commented 8 months ago

Describe the Bug

Running a default patcher + enable hibernate resulted in a permission error in the gaming responsiveness tweaks. (I could maybe resolve this by chowning the registry keys but I thought I'd report this here instead.

[-] [Performance] Disabling GameBar Presence Writer... Set-ItemProperty : Requested registry access is not allowed. At D:\Software\Win-Debloat-Tools-develop\src\lib\debloat-helper\Set-ItemPropertyVerified.psm1:28 char:13 + Set-ItemProperty -Path "$Path" -Name "$Name" -Type $Type ... + ~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACH....PresenceWriter:String) [Set-ItemProperty], Securit yException + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.SetItemPropertyCommand

How can this issue be reproduced?

run the apply tweaks script from the GUI (this is the current dev build, not the main branch)

Expected behavior?

No response

Operating System

Windows 11

Operating System Version

10.0.22621

Logs

WinDebloatTools-2023-11.log

LeDragoX commented 1 month ago

Waiting for the sudo command to see if it helps.

The only way to address this Gamebar Presence Writer problem is to get the ownership of GameBarPresenceWriter.exe inside the C:\Windows\System32 folder and rename it.

Getting access through ACL in registry isn't working at all.