Site icon EfmSoft

What does HRESULT 0x80270251 (E_ELEVATED_ACTIVATION_NOT_SUPPORTED) mean?

 
Previous Next
E_MONITOR_RESOLUTION_TOO_LOW E_UAC_DISABLED

E_ELEVATED_ACTIVATION_NOT_SUPPORTED

Packaged app activation was requested from an elevated context

E_ELEVATED_ACTIVATION_NOT_SUPPORTED is HRESULT 0x80270251 (signed decimal -2144927151, unsigned decimal 2150040145). Its failure bit is set, the facility is 39 (FACILITY_SHELL), and the code field is 0x0251. AllStat preserves the SDK message: “This app can't be activated from an elevated context.”

The security boundary represented by the HRESULT

The shell activation pipeline rejected the caller’s elevated token before performing a normal packaged-app launch. This often appears in administrative tools, elevated command shells, installers, test harnesses, or debuggers that call IApplicationActivationManager while running “as administrator.” The result describes the caller’s integrity context; it does not mean the target package itself needs more privilege.

Packaged app activation is intentionally different from calling CreateProcess for an ordinary desktop executable. The activation manager resolves an AppUserModelID and dispatches a launch, file, or protocol contract in the current interactive session. Passing that request through an elevated process can cross a security boundary the shell refuses to use.

Common cause branches

How to prove the cause

Correct architecture

Separate privileged configuration from user-session activation. A high-integrity service or helper can finish the administrative operation, then signal a normal per-user process that invokes the shell activation API. Validate the IPC request, bind it to the intended user/session, and pass only the minimum launch data. Do not solve the problem by lowering the entire application’s security posture or by attempting to duplicate an elevated token into the packaged app.

Retry policy

Retrying from the same elevated token will return the same result. A retry is safe after execution has moved to a non-elevated process in the intended user’s interactive session. If no such session exists, queue or report the user-facing action rather than launching UI from a service session.

Nearby errors that mean something else

E_UAC_DISABLED says the system-wide UAC prerequisite is disabled. E_FULL_ADMIN_NOT_SUPPORTED identifies the built-in Administrator context. E_APPLICATION_ACTIVATION_EXEC_FAILURE indicates that activation passed earlier policy checks but the app still did not start. These branches require different evidence and should not be collapsed into “access denied.”

Practical scenario

An elevated maintenance console completes a repair and calls ActivateApplication to open the repaired Store app. The call returns E_ELEVATED_ACTIVATION_NOT_SUPPORTED. The durable fix is to send a signed request to the console’s medium-integrity companion process and let that process activate the AppUserModelID.

Official Microsoft references


Looking for a different code? Search another status or error code.

Exit mobile version