Skip to content

[Bug]: Access Denied to HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide\Configuration #543

Open
@srgonzale

Description

@srgonzale

Description

After executing the script I get access denied error despite having administrator permissions

How can the bug be recreated?

Running the script called “Minimize DISM ”Reset Base“ update data” under the “Privacy cleanup” category.

Operating system

  • Microsoft Windows 11 Home
  • Version 10.0.26100 compilación 26100

Script file

PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide\Configuration'; $data =  '0'; reg add 'HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide\Configuration' /v 'DisableResetbase' /t 'REG_DWORD' /d "^""$data"^"" /f"

Screenshots

No response

Additional information

privacy.sexy

  • v0.13.8

$PSVersionTable Output:

Name                           Value
----                           -----
PSVersion                      5.1.26100.4202
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.4202
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

A little more context

Specific problem

The reason it gives access error even with administrator privileges is that in this version of Windows, permissions are read-only by default for this section of the registry. Only an account called “NT SERVICE\TrustedInstaller” has full control.

One solution

A manual solution I found was to run the registry editor (“regedit”) with full permissions and change the audit to the Administrators group to allow me to give full control to that group.

Proposed ideal solution

The idea would be to do it through a script. I tried the “Set-Acl” command but it wouldn't let me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions