Skip to content

registry hive permissions issue #180

Closed

Description

@avlider

When I run these lines, I get this error. As I understand it, this is a registry hive permissions issue. How can I solve this?

RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice,Hash,etsxyl+eDJY=
RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice,ProgId,Opera.Protocol
RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice,Hash,06AFV1JQmvk=
RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice,ProgId,Opera.Protocol

[Error] [E] RegWrite - Attempted to perform an unauthorized operation. (RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice,Hash,etsxyl+eDJY=) (Line 134)

Activity

  1. homes32 commented on Jan 31, 2026

    @homes32
    Contributor

    this issue is caused by the ironically named User Choice Protection Driver (UCPD for short) on the HOST computer used to build PhoenixPE. I wrote about the frustrations here: https://theoven.org/viewtopic.php?p=1957&sid=22ddcc99dcedb60c6e4663d24cf63c27#p1957

    The workaround is to use AddStartupConfig so that the registry entries are changed early in the boot process as PhoenixPE does not run the UCPD driver.

    Example:

    AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\http\UserChoice#$q, #$qProgId#$q, #$qREG_SZ#$q, #$q<SomeURL>#$q)"
    AddStartupConfig,PostShell,"RegWrite(#$qHKLM\Software\Microsoft\Windows\Roaming\OpenWith\UrlAssociations\https\UserChoice#$q, #$qHash#$q, #$qREG_SZ#$q, #$q<SomeHash>#$q)"
    
  2. avlider commented on Feb 1, 2026

    @avlider
    Author

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions