记一次codex在win通过powershell运行沙盒失败

ABoyCatD 2026-07-17 22:21 1

在微软商店更新powershell7至7.6.3,发现codex直接运行不了windows沙盒了,报错:

windows sandbox: runner error: CreateProcessAsUserW failed: 1312

更新codex至最新都无法解决。

后面找到原因



后来使用以下命令先卸载商店版本再安装msi版本解决

winget uninstall --id Microsoft.PowerShell --exact

winget install --id Microsoft.PowerShell --source winget --installer-type wix --scope machine

最新回复 (1)
  • susiddhi 07-17 23:14
    1

    我也发现升级powershell之后,失败的时候反而更多了。比如安装公益站的cli时,一直???????这样的乱码

* 帖子来源Linux.do
返回