Skip to content

Windows: authorised local commands rejected with “blocked by policy” and no explanation #53982

Open

Description

@senle-stack

I’m using Codex on Windows for a local software project. Two development operations were rejected before execution:

  • Starting an isolated local test server, including one retry after my explicit approval
  • Running a Python script to calculate file hashes and save two development reports

The error includes: CreateProcess … rejected: blocked by policy. No specific blocking rule or supported recovery step was provided. Other independent development operations subsequently succeeded.

Expected: Either execute permitted operations or explain the blocking rule and how to resolve it through supported controls.

The report-writing failure occurred on 14 October 2026, approximately 12:23–12:29 UTC.

Submitted in-app feedback ID: 01a1021c-617b-7c72-9773-a78af595da9d

Environment: Windows desktop app. Exact current app version and Windows build have not yet been verified.

Please identify what caused these rejections and the supported way to continue without disabling safeguards.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 14, 2026
  2. escoxd0 commented on Oct 19, 2026

    @escoxd0

    I encountered the same CreateProcess … rejected: blocked by policy error in Codex Desktop on Windows 11 while running an authorized offline Python environment setup.

    The process did not start, and no repository files were changed.

    I submitted in-app feedback.

    Feedback ID: 019fbd52-5755-77d0-a50c-0f7af4fb9e38

    Please advise on the officially supported resolution.

  3. rodrigovaz028 commented on Oct 20, 2026

    @rodrigovaz028

    No Codex desktop para Windows, uma operação de preparação da aquisição oficial de Fastify 5.12.3 foi recusada com “CreateProcess rejected: blocked by policy”, antes de iniciar o processo ou baixar o pacote.

    Feedback enviado: 01a0eed9-6461-75d0-9d58-b0d4dbf2efe1.

    Precisamos identificar o controle responsável, a justificativa da recusa e o procedimento suportado para continuar, preservando as proteções existentes.

  4. Abdomash commented on Oct 27, 2026

    @Abdomash

    I also experienced a similar issue with the Windows Codex CLI: an explicitly requested deletion of a folder inside my project workspace was rejected before PowerShell started with "blocked by policy", despite running with --yolo and Full Access.

    This response in #54476 (https://github.com/openai/codex/issues/54476#issuecomment-6207845526) resolved it for me. I simply switched to "Approve for me" and retried the task successfully.

    I even submitted feedback through Codex itself. Feedback thread ID: 01a17e99-e309-7f61-a884-5179c35ed541.

    It appears that Codex flagged a command as requiring approval, and because --yolo sets approval_policy = "never", it immediately rejected the command because there was no approval path available.

    Given this issue and the multitude of similar/duplicate issues, I suggest codex team clarify how automatic approval review works and update the rejection message so we and the agents know what to do. I had to dig through GitHub issues (as Codex couldn't fix this) to find the solution above.

  5. jay-researcher commented on Nov 8, 2026

    @jay-researcher

    I am experiencing the same issue on Windows.

    The authorized local UAT command was rejected before process creation with:

    CreateProcess ... rejected: blocked by policy

    No rule ID, matching policy, or supported recovery procedure was provided.

    Feedback ID: 01a1afa5-46df-7742-9e14-f65b3f49d6f1
    Windows: Microsoft Windows NT 10.0.26200.0 x64
    Candidate version: CodeReviewer 7.4.35
    Candidate commit: 1133f89fb4dc4f85eb070b68aeac5f99030649d3

    Please identify the responsible policy and the supported recovery procedure.

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions