How can I use codex/ccmax when my company banned the Windows powershell?

Open
#34,314 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
git, powershell, shell

Research direction

The report names no repository file or test. Start with the VS Code Codex plugin's shell configuration and the CCSwitch command-line parameters, then compare behavior under PowerShell, cmd.exe, and Git Bash. Done means identifying a supported workaround or documenting the group-policy limitation.

Written by the indexing model from the issue text.

Description

bug extension sandbox tool-calls windows-os

In vscode codex plugin:

I’m trying to analyze memory.go in my workspace:
D:\personalpro\nanobot

However, every read-only shell command fails. Running the command inside the sandbox produces:

windows sandbox: CreateProcessWithLogonW failed: 1385
Error 1385 indicates that the required logon type has not been granted to the user.

When I approve elevated execution and retry, it fails with:

OS error 1260: This program is blocked by group policy.
For more information, contact your system administrator.
This happens with both PowerShell commands such as Get-Content and commands executed through cmd.exe.

I tried configuring CCSwitch to use Git Bash as the shell by adding command-line parameters, but it didn’t work.

What can i do? Thank you all for your help and answers.

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.