ABoyCatD记一次codex在win通过powershell运行沙盒失败 中发帖

在微软商店更新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