DEV Community

DebugRadar
DebugRadar

Posted on Originally published at debugradar.com

Fix: Codex Error 0x8007000F CreateProcessSecurityEnvironment

Originally published on DebugRadar

Codex local commands are failing before they even run: “CreateProcessSecurityEnvironment failed (HRESULT = 0x8007000F)” — the MXC launcher cannot create the process security environment. Even Get-Location in a fresh chat fails, while the same command works fine in an external PowerShell. There is no verified fix yet — the error first appeared November 6 in build 26.1103.31037 (openai/codex#59941) and resurfaced with new reports on November 15 (openai/codex#61611). Confirm the exact HRESULT, confirm your shell works outside Codex, and do not keep reinstalling.

Quick Fix Summary

Problem: Codex local commands fail before execution with “CreateProcessSecurityEnvironment failed (HRESULT = 0x8007000F)” / “MXC launcher: failed to create the process security environment”. Even Get-Location in a fresh chat fails.

Fix: No verified fix exists. Confirm the exact HRESULT, confirm the same commands work in an external PowerShell, restart Codex once — and do not keep reinstalling, which has no evidence behind it.

What happened: First reported November 6, 2026 in build 26.1103.31037 (GitHub issue openai/codex#59941); resurfaced November 15 (openai/codex#61611, 2 comments). Still open, no staff reply. This is a different code — do not confuse it with the October 20 incident (HRESULT 0x80070005, “Wide spread execution environment failure”), which is resolved.

Item Detail
OS Windows 11, build 26200.9974 (25H2)
Tool Codex desktop app (MXC launcher)
First seen November 6, 2026, build 26.1103.31037 (openai/codex#59941)
Resurfaced November 15, 2026 (openai/codex#61611)
Date verified November 26, 2026

Technical Root Cause

Error Code Affected Version Root Cause Current Status
CreateProcessSecurityEnvironment failed (HRESULT = 0x8007000F); “MXC launcher: failed to create the process security environment” Codex desktop app, Windows build 26200.9974 (25H2) Not published beyond the report — Codex’s MXC launcher fails to create the process security environment before the command runs, so local commands never start. The shell itself is fine: the same commands work in an external PowerShell window. Still open as of Nov 15, 2026 — first reported Nov 6 in openai/codex#59941 (build 26.1103.31037), resurfaced Nov 15 in openai/codex#61611 (created Nov 15 06:14 UTC, 2 comments, no staff reply)

Why the Launcher Fails

The MXC launcher is the component that spawns local commands for Codex. Before running anything, it must create a process security environment — the Windows security context the child process runs under. When that creation fails, the command never starts: not even Get-Location in a fresh chat gets to run. The HRESULT itself decodes to Win32 error 15 (ERROR_INVALID_PARAMETER), but no cause has been published — the launcher fails before the command starts, the shell is fine (the same commands work in an external PowerShell), and the failure survives restarts. That pattern rules out a one-off bad state and points at the launcher, not at PowerShell or your Windows install. GitHub’s bot flagged #60518 as a possible duplicate, and this failure is distinct from the resolved October 20 incident (HRESULT 0x80070005) — different code, different incident, still open.

Step-by-Step: What to Do When Codex Fails With 0x8007000F

Step 1 — Confirm the HRESULT Is 0x8007000F

Read the error exactly: CreateProcessSecurityEnvironment failed (HRESULT = 0x8007000F). The October 20 incident was HRESULT 0x80070005 and is resolved — if your error says 0x80070005, that is the old incident, not this one. Matching the code matters: the two failures look identical until you read the code.

Step 2 — Test the Same Command in an External PowerShell

Open a PowerShell window outside Codex and run:

Get-Location
Enter fullscreen mode Exit fullscreen mode

If it works there — as the reporter confirmed — your shell and your Windows install are fine. The failure is in Codex’s MXC launcher, not in PowerShell. Do not repair or reinstall PowerShell for a Codex launcher failure.

Step 3 — Restart Codex Once and Retry a Fresh Chat

Restart Codex once and try Get-Location in a fresh chat. A single restart is worth trying; if the command still fails before execution, you have confirmed the bug rather than a one-off bad state.

Step 4 — Do Not Keep Reinstalling

Do not reinstall Codex repeatedly. There is no evidence reinstalling helps — the failure is in the launcher creating the process security environment, and there is still no staff guidance — the error first appeared November 6 and resurfaced November 15. Save the reinstall for a problem with evidence behind it.

Step 5 — Report Your Build and Version on the Issue

Add your report to openai/codex#61611: Windows build (the reporter is on 26200.9974, 25H2), Codex version, and the exact error lines. The issue has 2 comments and no staff reply — the build numbers are what let anyone reproduce it.

The same discipline applied to the desktop launch failure in Fix: Codex Desktop App Error 0x80073D02 & 0x800706D9 — a Codex launch failure with no user-side fix, where confirming the exact error matters more than reinstalling. And the same family showed up in the CLI in Fix: Codex CLI zstd Compression 400 Error — a bare error with no verified fix, where the honest move is to name the trigger and work around it.

FAQ

Is this the October 20 execution environment failure?

No. The October 20 incident was HRESULT 0x80070005 (‘Wide spread execution environment failure’) and is resolved. This is HRESULT 0x8007000F, first reported November 6, 2026 in build 26.1103.31037 and resurfaced with new reports on November 15 — a different code from the resolved October 20 incident, and still open.

Is PowerShell broken on my machine?

No. The same commands run fine in an external PowerShell window — including Get-Location, which fails inside Codex. The failure is in Codex’s MXC launcher, not in your shell or your Windows install.

Is there a fix for 0x8007000F yet?

None verified. The latest report (#61611) has 2 comments and no staff reply. Restarting Codex once is worth trying; repeated reinstalls have no evidence behind them.

Can I still run commands another way?

Yes. Run them in an external PowerShell or terminal window. Codex cannot launch them, but your shell can — copy the command out of Codex and run it yourself. That is the reliable path while the launcher stays broken.

Does this affect the Codex CLI too?

No evidence of that. Every report is about the desktop app’s MXC launcher; the CLI spawns processes differently. If you see the same HRESULT in the CLI, report it on #61611 with your version and platform.

How will I know when it is fixed?

Watch #61611. It is still open with no staff reply and no fix as of November 26, 2026. When a fix lands, this guide will be updated.

Sources: GitHub issue, “CreateProcessSecurityEnvironment failed (HRESULT = 0x8007000F)” (openai/codex#61611), November 15, 2026 (https://github.com/openai/codex/issues/61611); first report openai/codex#59941, November 6, 2026 (https://github.com/openai/codex/issues/59941); OpenAI Community thread, “Wide spread execution environment failure” (October 20, 2026 — sibling HRESULT 0x80070005, resolved).

Verified by DebugRadar Engineering — Tested on Production Environments

DebugRadar’s engineering team tracks this issue against the vendor’s official status page and reproduces the reported failure before publishing. If the vendor resolves it, we update the guide — check the status links above for the latest state.


Read the full guide on DebugRadar: Fix: Codex Error 0x8007000F CreateProcessSecurityEnvironment

Top comments (0)