Skip to content

System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. #89

@pamanes

Description

@pamanes

Describe the bug

Windows 11 Pro Version 25H2
Running WinDeBloat 1.13.0
Winget Version v1.12.350
dotnet SDK 8.0.416

Error when running WinDebloat (no exclusions or any parameters passed in), also tried running Terminal as Administrator.

2025-12-19 09:49:25.440 -08:00 [INF] "CurrentUser" Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced to 0
2025-12-19 09:49:25.445 -08:00 [FTL] Failed invoking command
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
   at Program.HandleRegistry(RegistryValueJob job) in C:\projects\windebloat\src\WinDebloat\Program.cs:line 248
   at Program.HandleJob(IJob job) in C:\projects\windebloat\src\WinDebloat\Program.cs:line 105
   at Program.Inner(String[] excludes, String[] includes) in C:\projects\windebloat\src\WinDebloat\Program.cs:line 60
   at ArgumentParser.<>c__DisplayClass0_0.<<Invoke>b__5>d.MoveNext() in C:\projects\windebloat\src\WinDebloat\Cli\ArgumentParser.cs:line 57
2025-12-19 09:49:25.463 -08:00 [INF] Time: 932ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions